:root {
  color-scheme: dark;
  --bg: #080908;
  --surface: #151613;
  --surface-strong: #20211d;
  --panel: rgba(20, 21, 18, 0.86);
  --panel-strong: rgba(28, 29, 25, 0.94);
  --panel-soft: rgba(247, 243, 232, 0.07);
  --panel-tint: rgba(183, 239, 109, 0.12);
  --ink: #f7f3e8;
  --muted: #9d9a92;
  --subtle: rgba(247, 243, 232, 0.62);
  --line: rgba(247, 243, 232, 0.1);
  --violet: #9a68ff;
  --violet-soft: rgba(154, 104, 255, 0.18);
  --peach: #ffb13d;
  --green: #b7ef6d;
  --green-strong: #63d98b;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(154, 104, 255, 0.16), transparent 34%),
    repeating-linear-gradient(90deg, rgba(247, 243, 232, 0.028) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(247, 243, 232, 0.018) 0 1px, transparent 1px 76px),
    linear-gradient(180deg, #10110f 0%, var(--bg) 100%);
  color: var(--ink);
  font-size: 15px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-root {
  min-height: 100dvh;
}

.entrance-root {
  display: grid;
  place-items: center;
  padding:
    calc(16px + env(safe-area-inset-top))
    16px
    calc(16px + env(safe-area-inset-bottom));
}

.entrance-card,
.mobile-shell {
  width: min(100%, 460px);
  margin: 0 auto;
}

.entrance-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow);
}

.brand-lockup,
.app-topbar,
.avatar-button,
.moka-line,
.button-row,
.bottom-nav,
.progress-strip,
.tag-row {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
}

.brand-lockup img,
.avatar-button img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  object-fit: cover;
}

.brand-lockup strong,
.screen-heading h1,
.screen-heading h2,
.entrance-hero h1,
.home-hero h2,
.life-checkin h3,
.prompt-panel h3,
.task-card h2,
.question-card h2,
.discovery-card h2,
.timeline-card h3,
.empty-state h3,
.profile-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand-lockup span,
.eyebrow,
.progress-strip span,
.field span,
.next-card span,
.timeline-card span,
.app-topbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.entrance-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: end;
}

.entrance-hero img {
  align-self: center;
  border-radius: 26px;
}

.entrance-hero h1,
.screen-heading h1 {
  margin-top: 8px;
  font-size: clamp(30px, 8.8vw, 46px);
  line-height: 0.96;
}

.entrance-hero p,
.screen-heading p,
.home-hero p,
.prompt-panel p,
.task-card p,
.timeline-card p,
.empty-state p,
.boundary-card p,
.profile-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input {
  min-height: 54px;
  padding: 0 16px;
  font-weight: 900;
}

.field textarea {
  min-height: 146px;
  padding: 15px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(98, 89, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(98, 89, 246, 0.11);
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 950;
}

.primary-button {
  border: 0;
  padding: 0 18px;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 14px 30px rgba(98, 89, 246, 0.22);
}

.secondary-button {
  border: 1px solid rgba(98, 89, 246, 0.17);
  padding: 0 16px;
  background: #fff;
  color: var(--violet);
}

.secondary-button.compact {
  min-height: 44px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.full {
  width: 100%;
}

.role-grid {
  display: grid;
  gap: 10px;
}

.role-option,
.life-checkin,
.quiz-card,
.area-result,
.status-summary-card,
.home-guide article,
.design-frame article,
.odyssey-card,
.odyssey-grid article,
.action-brief,
.task-card,
.question-card,
.discovery-card,
.feedback-result-card,
.prompt-panel,
.timeline-card,
.empty-state,
.profile-card,
.boundary-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(93, 68, 38, 0.08);
}

.role-option {
  min-height: 92px;
  display: grid;
  gap: 7px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
}

.role-option strong {
  font-size: 18px;
  line-height: 1.2;
}

.role-option span {
  color: var(--muted);
  line-height: 1.45;
}

.role-option .role-kicker {
  color: var(--violet);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.role-option em {
  width: fit-content;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.role-option.is-active {
  border-color: rgba(98, 89, 246, 0.34);
  background: #fff;
  box-shadow: 0 14px 34px rgba(98, 89, 246, 0.12);
}

.product-root {
  padding:
    calc(10px + env(safe-area-inset-top))
    10px
    calc(10px + env(safe-area-inset-bottom));
}

.mobile-shell {
  min-height: calc(100dvh - 20px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.app-topbar {
  min-height: 64px;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.86);
  box-shadow: 0 10px 28px rgba(93, 68, 38, 0.08);
}

.app-topbar h1 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1;
}

.avatar-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.app-topbar > div {
  min-width: 0;
  flex: 1;
}

.progress-strip {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.progress-strip::-webkit-scrollbar {
  display: none;
}

.progress-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 max-content;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.progress-strip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 35, 52, 0.16);
}

.progress-strip .is-done {
  color: #247a59;
  background: rgba(236, 255, 246, 0.9);
}

.progress-strip .is-done i {
  background: var(--green);
}

.action-progress {
  margin-top: 10px;
}

.screen-body {
  min-width: 0;
  overflow: auto;
  padding-bottom: 96px;
}

.home-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 143, 84, 0.18), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 85% 12%, rgba(98, 89, 246, 0.18), transparent 12rem);
  box-shadow: var(--shadow);
}

.home-hero h2,
.life-checkin h3,
.task-card h2,
.question-card h2,
.discovery-card h2,
.screen-heading h2 {
  margin-top: 8px;
  font-size: clamp(23px, 6.4vw, 34px);
  line-height: 1.08;
}

.home-hero img {
  width: 116px;
  justify-self: end;
  align-self: center;
  margin-top: -8px;
}

.prompt-panel,
.life-checkin,
.status-summary-card,
.energy-snapshot,
.energy-panel,
.home-guide,
.design-frame,
.odyssey-card,
.action-brief,
.task-card,
.question-card,
.discovery-card,
.profile-card,
.boundary-card,
.screen-heading {
  margin-top: 10px;
  padding: 18px;
}

.prompt-panel h3 {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.12;
}

.status-summary-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.energy-snapshot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(47, 156, 115, 0.22);
  border-radius: 24px;
  background: rgba(236, 255, 246, 0.9);
  box-shadow: 0 12px 30px rgba(93, 68, 38, 0.08);
}

.energy-snapshot h3,
.energy-score-card h3 {
  margin: 4px 0 0;
  color: #247a59;
  font-size: 34px;
  line-height: 1;
}

.energy-snapshot small,
.energy-score-card small {
  color: var(--muted);
  font-size: 15px;
}

.energy-snapshot p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.status-summary-card .secondary-button {
  justify-self: start;
}

.status-summary-card h3,
.action-brief h2 {
  margin: 6px 0 0;
  font-size: 21px;
  line-height: 1.16;
}

.status-summary-card p,
.energy-panel p,
.action-brief p,
.home-guide p,
.design-frame p,
.odyssey-card p,
.odyssey-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.energy-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(93, 68, 38, 0.08);
}

.energy-panel h3 {
  margin: 8px 0 0;
  font-size: 23px;
  line-height: 1.12;
}

.energy-range-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(37, 35, 52, 0.06);
}

.energy-range-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.energy-range-tabs button.is-active {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 8px 18px rgba(98, 89, 246, 0.1);
}

.energy-score-card {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(236, 255, 246, 0.94), rgba(255, 250, 243, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(98, 89, 246, 0.12), transparent 10rem);
}

.energy-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.energy-score-card img {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  object-fit: cover;
}

.energy-bars {
  height: 132px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 16px;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(37, 35, 52, 0.08);
}

.energy-bars i {
  min-height: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(47, 156, 115, 0.9), rgba(47, 156, 115, 0.34));
  color: #1f5f48;
  font-style: normal;
}

.energy-bars b {
  margin-top: -20px;
  font-size: 10px;
  font-weight: 950;
}

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

.energy-metric {
  min-height: 118px;
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(93, 68, 38, 0.08);
}

.energy-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.energy-metric strong {
  font-size: 20px;
  line-height: 1.12;
}

.energy-metric p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.energy-metric i {
  display: flex;
  gap: 5px;
  font-style: normal;
}

.energy-metric b {
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: rgba(37, 35, 52, 0.12);
}

.energy-metric b.is-on {
  background: var(--green);
}

.energy-actions {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.energy-actions button {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(37, 35, 52, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  font-weight: 900;
}

.energy-actions button.is-done {
  border-color: rgba(47, 156, 115, 0.28);
  background: rgba(236, 255, 246, 0.92);
  color: #247a59;
}

.section-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.16;
}

.home-guide {
  display: grid;
  gap: 10px;
  padding: 0;
}

.home-guide article {
  padding: 15px;
}

.home-guide span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 950;
}

.home-guide strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.design-frame {
  display: grid;
  gap: 10px;
  padding: 0;
}

.design-frame article {
  padding: 15px;
}

.design-frame span,
.odyssey-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.design-frame strong,
.odyssey-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
}

.odyssey-card h3 {
  margin: 8px 0 0;
  font-size: 23px;
  line-height: 1.12;
}

.odyssey-grid {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.odyssey-grid article {
  padding: 13px;
  background: rgba(255, 250, 243, 0.82);
}

.action-brief {
  display: grid;
  gap: 10px;
}

.action-brief .secondary-button {
  justify-self: start;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.life-checkin h3 {
  margin-top: 8px;
}

.quiz-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.quiz-progress span {
  color: var(--violet);
  font-size: 13px;
  font-weight: 950;
}

.quiz-progress i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 35, 52, 0.1);
}

.quiz-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
  transition: width 180ms ease;
}

.quiz-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-card {
  padding: 14px;
}

.quiz-card > span,
.dashboard-result-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.quiz-card > strong,
.dashboard-result-head strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.24;
}

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

.answer-option {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(37, 35, 52, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  font-weight: 900;
  line-height: 1.35;
}

.answer-option.is-selected {
  border-color: rgba(98, 89, 246, 0.36);
  background: var(--violet-soft);
  color: var(--violet);
}

.answer-option:focus-visible {
  outline: 3px solid rgba(98, 89, 246, 0.22);
  outline-offset: 2px;
}

.dashboard-result {
  margin-top: 16px;
}

.dashboard-result-head {
  padding-top: 2px;
}

.feedback-result-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 15px;
  margin-top: 16px;
  padding: 16px;
}

.feedback-result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 94% 8%, rgba(183, 239, 109, 0.16), transparent 10rem),
    radial-gradient(circle at 8% 92%, rgba(115, 199, 255, 0.12), transparent 12rem);
  pointer-events: none;
}

.feedback-result-card > * {
  position: relative;
  z-index: 1;
}

.feedback-result-head,
.feedback-result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.feedback-result-head span,
.feedback-next-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.feedback-result-head strong {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.feedback-result-hero em {
  width: fit-content;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-tint);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.feedback-result-hero h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.06;
}

.feedback-result-hero p {
  margin: 10px 0 0;
  color: var(--subtle);
  line-height: 1.52;
}

.feedback-result-hero img {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(247, 243, 232, 0.1);
  border-radius: 26px;
  object-fit: cover;
  background: rgba(247, 243, 232, 0.08);
}

.feedback-next-step {
  padding: 14px;
  border: 1px solid rgba(183, 239, 109, 0.2);
  border-radius: 20px;
  background: var(--panel-tint);
}

.feedback-next-step p {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.5;
}

.result-actions {
  margin-top: 0;
}

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

.area-result {
  min-height: 96px;
  display: grid;
  gap: 7px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
}

.area-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.area-result strong {
  font-size: 16px;
  line-height: 1.15;
}

.area-result i {
  display: flex;
  gap: 5px;
  font-style: normal;
}

.area-result b {
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: rgba(37, 35, 52, 0.12);
}

.area-result b.is-on {
  background: var(--green);
}

.area-result.is-focus {
  border-color: rgba(98, 89, 246, 0.34);
  background: #fff;
  box-shadow: 0 14px 34px rgba(98, 89, 246, 0.12);
}

.dashboard-focus {
  margin: 14px 0 0;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(236, 255, 246, 0.86);
  color: #247a59;
  font-weight: 900;
  line-height: 1.45;
}

.dashboard-focus.is-pending {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.taste-checkin {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.taste-checkin-head {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 14px;
  align-items: center;
}

.taste-checkin-head img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft);
  object-fit: cover;
}

.taste-progress {
  margin-top: 0;
}

.taste-adaptive-copy {
  margin: -4px 0 0;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.taste-selected-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.taste-selected-strip::-webkit-scrollbar {
  display: none;
}

.taste-chip {
  width: 82px;
  flex: 0 0 82px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(183, 239, 109, 0.28);
  border-radius: 18px;
  background: rgba(183, 239, 109, 0.1);
  color: var(--ink);
  text-align: left;
}

.taste-chip img {
  width: 100%;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
}

.taste-chip span {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taste-slot {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(247, 243, 232, 0.18);
  border-radius: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.taste-option {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 9, 8, 0.46);
  color: var(--ink);
  text-align: left;
}

.taste-option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  background: var(--panel-soft);
  object-fit: cover;
}

.taste-option strong {
  font-size: 14px;
  line-height: 1.2;
}

.taste-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.taste-option:focus-visible,
.taste-chip:focus-visible {
  outline: 3px solid rgba(183, 239, 109, 0.24);
  outline-offset: 2px;
}

.taste-result-card {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 9, 8, 0.42);
}

.taste-result-hero {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 14px;
  align-items: start;
}

.taste-result-hero em {
  width: fit-content;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-tint);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.taste-result-hero h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.06;
}

.taste-result-hero p {
  margin: 10px 0 0;
  color: var(--subtle);
  line-height: 1.52;
}

.taste-result-hero img {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-soft);
  object-fit: cover;
}

.taste-prototype-grid {
  display: grid;
  gap: 10px;
}

.taste-prototype-grid article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 243, 232, 0.06);
}

.taste-prototype-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.taste-prototype-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.2;
}

.taste-prototype-grid p {
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.48;
}

.guided-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 239, 109, 0.12), transparent 11rem),
    rgba(8, 9, 8, 0.46);
}

.guided-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.guided-head h3 {
  margin: 8px 0 0;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.08;
}

.guided-head p,
.quiz-card p {
  margin: 8px 0 0;
  color: var(--subtle);
  line-height: 1.5;
}

.poster-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(210, 245, 93, 0.18), transparent 12rem),
    linear-gradient(160deg, rgba(38, 50, 30, 0.82), rgba(8, 9, 8, 0.9));
}

.poster-gauge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.poster-gauge-grid article {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  padding: 12px;
  border: 1px solid rgba(247, 243, 232, 0.1);
  border-radius: 18px;
  background: rgba(8, 9, 8, 0.38);
}

.poster-gauge-grid span,
.poster-gauge-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.poster-gauge-grid strong {
  font-size: clamp(22px, 7vw, 34px);
  line-height: 0.95;
}

.upload-box {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 1px dashed rgba(98, 89, 246, 0.36);
  border-radius: 22px;
  background: rgba(236, 234, 255, 0.46);
}

.upload-box img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
}

.upload-box strong {
  display: block;
  font-size: 16px;
}

.upload-box span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.button-row {
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.button-row .primary-button,
.button-row .secondary-button {
  flex: 1;
}

.moka-line {
  gap: 14px;
  align-items: flex-start;
}

.moka-line img {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
  background: var(--violet-soft);
}

blockquote {
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid var(--violet);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 860;
  line-height: 1.42;
}

.discovery-card > strong {
  display: block;
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.18;
}

.evidence-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.evidence-list p,
.next-card {
  margin: 0;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.88);
  line-height: 1.5;
}

.evidence-list b {
  display: block;
  margin-bottom: 4px;
}

.next-card {
  margin-bottom: 16px;
  background: rgba(236, 255, 246, 0.92);
}

.next-card p {
  margin: 7px 0 0;
  font-weight: 900;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-card,
.empty-state {
  padding: 16px;
}

.timeline-card.is-current {
  border-color: rgba(47, 156, 115, 0.25);
  background: rgba(236, 255, 246, 0.9);
}

.empty-state {
  text-align: center;
}

.empty-state img {
  width: 130px;
  margin: 0 auto 12px;
}

.profile-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-card img {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  object-fit: cover;
}

.boundary-card h3 {
  margin: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 15;
  width: min(calc(100% - 20px), 460px);
  min-height: 64px;
  justify-content: space-around;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 -8px 30px rgba(93, 68, 38, 0.13);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.bottom-nav span {
  font-size: 12px;
}

.bottom-nav button.is-active {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 10px 22px rgba(98, 89, 246, 0.1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(86vw, 360px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(37, 35, 52, 0.92);
  color: #fff;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.entrance-card,
.app-topbar,
.bottom-nav,
.role-option,
.life-checkin,
.quiz-card,
.area-result,
.status-summary-card,
.home-guide article,
.design-frame article,
.odyssey-card,
.odyssey-grid article,
.action-brief,
.task-card,
.question-card,
.discovery-card,
.feedback-result-card,
.prompt-panel,
.timeline-card,
.empty-state,
.profile-card,
.boundary-card,
.energy-panel,
.energy-metric {
  border-color: rgba(247, 243, 232, 0.09);
  background: rgba(22, 23, 20, 0.82);
  box-shadow: var(--shadow);
}

.field input,
.field textarea,
blockquote,
.answer-option,
.energy-actions button,
.evidence-list p,
.next-card {
  border-color: rgba(247, 243, 232, 0.1);
  background: rgba(8, 9, 8, 0.72);
  color: var(--ink);
}

.avatar-button,
.secondary-button,
.energy-range-tabs button.is-active,
.bottom-nav button.is-active {
  background: rgba(247, 243, 232, 0.1);
  color: var(--ink);
}

.primary-button {
  background: linear-gradient(135deg, #f6e95d, #b7ef6d 52%, #74c6ff);
  color: #12130f;
  box-shadow: 0 16px 34px rgba(183, 239, 109, 0.16);
}

.product-root {
  background:
    linear-gradient(180deg, rgba(247, 243, 232, 0.03), transparent 240px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.app-topbar,
.bottom-nav {
  backdrop-filter: blur(22px);
}

.life-dashboard {
  display: grid;
  gap: 10px;
}

.dashboard-hero,
.life-gauge-card,
.rhythm-card,
.trend-card,
.dashboard-stat,
.dashboard-next {
  border: 1px solid rgba(247, 243, 232, 0.1);
  border-radius: 28px;
  background: rgba(18, 19, 17, 0.82);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 404px;
  display: grid;
  align-content: start;
  padding: 20px 18px 18px;
  background:
    linear-gradient(145deg, rgba(29, 30, 27, 0.98), rgba(8, 9, 8, 0.96)),
    repeating-linear-gradient(135deg, rgba(247, 243, 232, 0.04) 0 1px, transparent 1px 18px);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(247, 243, 232, 0.05);
  border-radius: 22px;
  pointer-events: none;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.dashboard-hero h2 {
  margin: 9px 0 0;
  font-size: clamp(31px, 9vw, 48px);
  line-height: 0.98;
}

.dashboard-hero p {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-agent {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(247, 243, 232, 0.1);
  border-radius: 24px;
  object-fit: cover;
  background: rgba(247, 243, 232, 0.08);
}

.life-score-ring {
  position: relative;
  z-index: 1;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 24px auto 0;
}

.life-score-ring::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 232, 0.08);
  background: rgba(8, 9, 8, 0.64);
}

.ring-dots {
  position: absolute;
  inset: 0;
}

.ring-dots i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 999px;
  background: rgba(247, 243, 232, 0.16);
  transform: rotate(var(--angle)) translateY(-86px);
  transform-origin: center;
}

.ring-dots i.is-on {
  background: #8e67ff;
  box-shadow: 0 0 12px rgba(142, 103, 255, 0.74);
}

.ring-score {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.ring-score strong {
  font-size: 66px;
  line-height: 0.92;
  letter-spacing: 0;
}

.ring-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stat {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  padding: 16px;
}

.dashboard-stat span,
.dashboard-section-head span,
.life-gauge-head span,
.trend-caption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-stat strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 10vw, 42px);
  line-height: 0.95;
}

.dashboard-stat small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 15px;
}

.dashboard-stat em {
  color: rgba(247, 243, 232, 0.54);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.life-gauge-card,
.rhythm-card,
.trend-card {
  padding: 18px;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-section-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.life-gauge-list {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.life-gauge-row {
  display: grid;
  gap: 9px;
}

.life-gauge-head,
.life-gauge-foot,
.trend-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.life-gauge-head strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.life-gauge-head em {
  min-width: 46px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(183, 239, 109, 0.13);
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.life-gauge-track {
  position: relative;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bf68ff 0%, #6971ff 24%, #72bcff 46%, #d7df78 70%, #ffe74f 100%);
  box-shadow: inset 0 0 0 1px rgba(247, 243, 232, 0.12);
}

.life-gauge-track b {
  position: absolute;
  top: 18px;
  width: 2px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.life-gauge-track b::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid var(--ink);
  transform: translateX(-50%);
}

.life-gauge-foot {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.life-gauge-foot strong {
  color: var(--ink);
  font-size: 21px;
}

.life-gauge-row p {
  margin: 0;
  color: rgba(247, 243, 232, 0.62);
  font-size: 13px;
  line-height: 1.42;
}

.rhythm-summary {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
  color: var(--peach);
}

.rhythm-summary strong {
  font-size: 76px;
  line-height: 0.82;
}

.rhythm-summary span {
  padding-bottom: 7px;
  font-size: 18px;
  font-weight: 950;
}

.rhythm-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.rhythm-week article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.rhythm-week span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.rhythm-week i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed rgba(247, 243, 232, 0.23);
  color: rgba(247, 243, 232, 0.64);
  font-style: normal;
  font-weight: 950;
}

.rhythm-week .done i {
  border-style: solid;
  border-color: rgba(183, 239, 109, 0.5);
  background: rgba(183, 239, 109, 0.2);
  color: var(--green);
}

.rhythm-week .today i {
  border-style: solid;
  border-color: rgba(255, 177, 61, 0.7);
  color: var(--peach);
  box-shadow: 0 0 0 5px rgba(255, 177, 61, 0.1);
}

.trend-card {
  overflow: hidden;
}

.life-trend-svg {
  width: 100%;
  height: 178px;
  margin-top: 16px;
}

.trend-card svg .trend-area {
  fill: rgba(247, 243, 232, 0.1);
}

.trend-line {
  fill: none;
  stroke: rgba(247, 243, 232, 0.82);
  stroke-width: 4;
  stroke-linecap: round;
}

.trend-caption strong {
  color: var(--green);
  font-size: 24px;
}

.dashboard-next {
  padding: 18px;
}

.dashboard-next h3 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.12;
}

.dashboard-next p {
  margin-bottom: 15px;
}

/* UI consistency pass: one dark glass system across all product screens. */
.entrance-card,
.app-topbar,
.bottom-nav,
.role-option,
.life-checkin,
.quiz-card,
.area-result,
.status-summary-card,
.energy-snapshot,
.energy-panel,
.energy-metric,
.home-guide article,
.design-frame article,
.odyssey-card,
.odyssey-grid article,
.action-brief,
.task-card,
.question-card,
.discovery-card,
.feedback-result-card,
.prompt-panel,
.timeline-card,
.empty-state,
.profile-card,
.boundary-card,
.dashboard-hero,
.life-gauge-card,
.rhythm-card,
.trend-card,
.dashboard-stat,
.dashboard-next {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-hero,
.energy-score-card {
  background:
    linear-gradient(145deg, rgba(32, 33, 29, 0.96), rgba(10, 11, 10, 0.94)),
    radial-gradient(circle at 86% 12%, rgba(183, 239, 109, 0.12), transparent 12rem);
}

.app-topbar,
.bottom-nav {
  background: rgba(14, 15, 13, 0.88);
  border-color: rgba(247, 243, 232, 0.08);
  backdrop-filter: blur(22px);
}

.avatar-button,
.secondary-button,
.energy-range-tabs button.is-active,
.bottom-nav button.is-active {
  background: var(--panel-soft);
  color: var(--ink);
  border-color: rgba(247, 243, 232, 0.1);
}

.secondary-button {
  box-shadow: none;
}

.primary-button {
  background: linear-gradient(135deg, #f4e86a, var(--green) 54%, #73c7ff);
  color: #10120e;
  box-shadow: 0 16px 34px rgba(183, 239, 109, 0.16);
}

.field input,
.field textarea,
blockquote,
.answer-option,
.energy-actions button,
.evidence-list p,
.next-card,
.upload-box {
  border-color: rgba(247, 243, 232, 0.1);
  background: rgba(8, 9, 8, 0.74);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 243, 232, 0.38);
}

.field input:focus,
.field textarea:focus,
.answer-option:focus-visible {
  border-color: rgba(183, 239, 109, 0.42);
  box-shadow: 0 0 0 4px rgba(183, 239, 109, 0.1);
}

.role-option.is-active,
.answer-option.is-selected,
.area-result.is-focus,
.timeline-card.is-current,
.energy-actions button.is-done {
  border-color: rgba(183, 239, 109, 0.34);
  background: var(--panel-tint);
  color: var(--ink);
}

.progress-strip span,
.tag-row span {
  background: var(--panel-soft);
  color: var(--subtle);
}

.progress-strip .is-done,
.dashboard-focus,
.next-card {
  background: var(--panel-tint);
  color: var(--green);
}

.energy-snapshot {
  background:
    linear-gradient(145deg, rgba(183, 239, 109, 0.13), rgba(20, 21, 18, 0.86)),
    var(--panel);
}

.energy-snapshot h3,
.energy-score-card h3,
.energy-metric p,
.trend-caption strong,
.life-gauge-head em {
  color: var(--green);
}

.energy-range-tabs {
  background: rgba(247, 243, 232, 0.055);
}

.energy-bars {
  border-top-color: rgba(247, 243, 232, 0.08);
}

.energy-bars i {
  background: linear-gradient(180deg, rgba(183, 239, 109, 0.9), rgba(99, 217, 139, 0.25));
  color: var(--green);
}

.energy-metric b,
.area-result b {
  background: rgba(247, 243, 232, 0.14);
}

.energy-metric b.is-on,
.area-result b.is-on {
  background: var(--green);
}

.dashboard-hero h2 {
  font-size: clamp(28px, 7.4vw, 42px);
  line-height: 1.02;
}

.screen-heading h2,
.home-hero h2,
.life-checkin h3,
.task-card h2,
.question-card h2,
.discovery-card h2 {
  font-size: clamp(23px, 6vw, 32px);
}

.dashboard-stat strong,
.ring-score strong {
  font-variant-numeric: tabular-nums;
}

.dashboard-stat em,
.life-gauge-row p {
  color: var(--subtle);
}

.bottom-nav {
  min-height: 62px;
}

.bottom-nav button {
  min-height: 44px;
}

.bottom-nav button.is-active {
  box-shadow: inset 0 0 0 1px rgba(247, 243, 232, 0.05);
}

.screen-heading {
  padding: 22px 20px;
}

.screen-heading h2 {
  max-width: 9em;
}

.screen-heading p,
.taste-checkin-head p,
.taste-adaptive-copy,
.taste-result-hero p,
.timeline-card p,
.empty-state p {
  color: rgba(247, 243, 232, 0.58);
  font-size: 14px;
  line-height: 1.45;
}

.taste-checkin {
  padding: 16px;
}

.taste-checkin-head {
  align-items: center;
}

.taste-checkin-head h3 {
  max-width: 9em;
  font-size: clamp(24px, 6.6vw, 34px);
  line-height: 1.04;
}

.taste-grid {
  gap: 10px;
}

.taste-option {
  min-height: 158px;
  padding: 9px;
  border-color: rgba(247, 243, 232, 0.07);
  background: rgba(247, 243, 232, 0.055);
}

.taste-option img {
  aspect-ratio: 1 / 0.74;
}

.taste-option strong {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.15;
}

.taste-option span {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(247, 243, 232, 0.5);
}

.taste-result-card {
  gap: 18px;
  padding: 20px;
  border-color: rgba(183, 239, 109, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 10%, rgba(183, 239, 109, 0.12), transparent 12rem),
    rgba(247, 243, 232, 0.045);
}

.feedback-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taste-result-hero {
  grid-template-columns: 1fr 76px;
  align-items: center;
}

.taste-result-hero h3 {
  max-width: 7em;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 0.98;
}

.taste-result-hero p {
  max-width: 18em;
  margin-top: 9px;
}

.taste-result-hero img {
  width: 76px;
  height: 76px;
  border-radius: 24px;
}

.feedback-next-step {
  padding: 18px;
  border-radius: 24px;
}

.feedback-next-step p {
  margin-top: 8px;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.18;
}

.result-actions {
  gap: 10px;
}

.timeline-list {
  gap: 12px;
}

.timeline-card,
.empty-state {
  min-height: 132px;
  display: grid;
  align-content: center;
  padding: 20px;
  border-radius: 30px;
}

.timeline-card h3,
.empty-state h3 {
  max-width: 10em;
  font-size: clamp(24px, 6.5vw, 34px);
  line-height: 1.04;
}

.timeline-card p,
.empty-state p {
  max-width: 20em;
  margin-top: 10px;
}

.timeline-card.is-current {
  border-color: rgba(183, 239, 109, 0.28);
  background: rgba(183, 239, 109, 0.12);
}

.toast {
  background: rgba(18, 19, 17, 0.94);
  color: var(--ink);
  border: 1px solid rgba(247, 243, 232, 0.1);
}

/* Low-density mobile app pass inspired by Breathwrk: one screen, one job. */
body {
  font-size: 14px;
}

.product-root {
  padding:
    calc(8px + env(safe-area-inset-top))
    8px
    calc(8px + env(safe-area-inset-bottom));
}

.mobile-shell {
  gap: 8px;
}

.screen-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-bottom: 92px;
}

.app-topbar {
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 22px;
}

.avatar-button {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.app-topbar h1 {
  font-size: 19px;
}

.secondary-button.compact {
  min-height: 38px;
  padding: 0 14px;
}

.screen-heading {
  margin-top: 0;
  padding: 16px 14px 6px;
}

.screen-heading h2 {
  max-width: 9em;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 0.98;
}

.screen-heading p {
  max-width: 20em;
}

.taste-checkin,
.guided-card,
.taste-result-card,
.feedback-result-card,
.timeline-card,
.empty-state {
  border-radius: 26px;
}

.taste-checkin {
  padding: 14px;
}

.taste-checkin-head {
  grid-template-columns: 1fr 62px;
  gap: 12px;
}

.taste-checkin-head h3 {
  max-width: 8em;
  font-size: clamp(24px, 6.8vw, 32px);
}

.taste-checkin-head img {
  width: 62px;
  height: 62px;
}

.taste-selected-strip {
  margin-top: 10px;
}

.taste-chip,
.taste-slot {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 15px;
}

.taste-chip span {
  display: none;
}

.taste-grid {
  gap: 8px;
}

.taste-option {
  min-height: 132px;
  padding: 7px;
  border-radius: 18px;
}

.taste-option img {
  aspect-ratio: 1 / 0.72;
  border-radius: 14px;
}

.taste-option strong {
  font-size: 13px;
}

.taste-option span {
  font-size: 10px;
}

.taste-result-card,
.feedback-result-card {
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 10%, rgba(183, 239, 109, 0.12), transparent 10rem),
    linear-gradient(160deg, rgba(20, 30, 23, 0.92), rgba(8, 9, 8, 0.94));
}

.feedback-result-head strong {
  color: var(--ink);
}

.taste-result-hero,
.feedback-result-hero {
  grid-template-columns: 1fr 72px;
  gap: 12px;
  align-items: center;
}

.taste-result-hero h3,
.feedback-result-hero h3 {
  max-width: 7em;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 0.98;
}

.taste-result-hero p,
.feedback-result-hero p {
  max-width: 20em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.taste-result-hero img,
.feedback-result-hero img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.poster-gauge-grid,
.taste-prototype-grid {
  display: none;
}

.feedback-next-step {
  padding: 16px;
  border-radius: 22px;
}

.feedback-next-step p {
  max-width: 12em;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.1;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
}

.bottom-nav {
  width: min(calc(100% - 16px), 460px);
  min-height: 58px;
  padding: 5px;
  border-radius: 22px;
}

.bottom-nav button {
  min-height: 42px;
  border-radius: 16px;
}

.bottom-nav span {
  font-size: 11px;
}

.timeline-card,
.empty-state {
  min-height: 118px;
  padding: 18px;
}

.timeline-card h3,
.empty-state h3 {
  font-size: clamp(24px, 6.6vw, 32px);
}

@media (min-width: 860px) {
  .product-root {
    padding: 18px;
  }

  .mobile-shell {
    width: min(100%, 1120px);
    min-height: calc(100dvh - 36px);
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
  }

  .app-topbar,
  .screen-body {
    grid-column: 1;
  }

  .screen-body {
    overflow: visible;
    padding-bottom: 8px;
  }

  .bottom-nav {
    position: sticky;
    top: 18px;
    grid-column: 2;
    grid-row: 1 / span 2;
    left: auto;
    bottom: auto;
    z-index: auto;
    width: auto;
    min-height: auto;
    align-self: start;
    align-content: start;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    transform: none;
  }

  .bottom-nav button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
  }

  .home-hero {
    grid-template-columns: 1fr 180px;
  }

  .home-hero img {
    width: auto;
    justify-self: auto;
    margin-top: 0;
  }

  .status-summary-card {
    grid-template-columns: 1fr auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .life-dashboard {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-hero {
    min-height: 438px;
    grid-column: span 7;
  }

  .dashboard-stat-grid {
    grid-column: span 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-gauge-card {
    grid-column: span 7;
  }

  .rhythm-card {
    grid-column: span 5;
  }

  .trend-card,
  .dashboard-next {
    grid-column: span 6;
  }

  .energy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .taste-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .taste-prototype-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-guide,
  .design-frame,
  .odyssey-grid,
  .timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .task-card,
  .question-card,
  .discovery-card {
    max-width: 780px;
  }
}

@media (max-width: 520px) {
  .dashboard-hero {
    min-height: 368px;
    padding: 18px 16px 16px;
  }

  .dashboard-hero h2 {
    font-size: clamp(28px, 8.1vw, 36px);
    line-height: 1;
  }

  .dashboard-hero p {
    margin-top: 10px;
  }

  .life-score-ring {
    width: 172px;
    height: 172px;
    margin-top: 17px;
  }

  .ring-dots i {
    transform: rotate(var(--angle)) translateY(-78px);
  }

  .ring-score strong {
    font-size: 58px;
  }

  .dashboard-agent {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 380px) {
  .entrance-hero,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .entrance-hero img,
  .home-hero img {
    width: 132px;
  }

  .button-row {
    display: grid;
  }

  .taste-checkin-head,
  .taste-result-hero {
    grid-template-columns: 1fr;
  }

  .taste-checkin-head img,
  .taste-result-hero img {
    width: 96px;
    height: 96px;
  }

  .life-score-ring {
    width: 166px;
    height: 166px;
  }

  .ring-dots i {
    transform: rotate(var(--angle)) translateY(-75px);
  }
}
