:root {
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #e9eeea;
  --ink: #18221c;
  --muted: #667169;
  --faint: #929b94;
  --line: #d8ded9;
  --green: #2f6e50;
  --green-dark: #20553c;
  --green-soft: #dce9e0;
  --coral: #d96958;
  --coral-soft: #f6e3df;
  --yellow: #e5b84b;
  --yellow-soft: #f7edcf;
  --shadow: 0 18px 60px rgba(24, 34, 28, 0.14);
  --radius: 6px;
  --body-font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display-font: "Songti SC", "STSong", serif;
  --mono-font: "SFMono-Regular", "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 232px;
  flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: #edf1ed;
}

.brand,
.mobile-brand,
.mini-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand {
  height: 42px;
  padding: 0 8px;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--display-font);
  font-size: 20px;
}

.create-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  transition: background 160ms ease, transform 160ms ease;
}

.create-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 550;
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface);
  color: var(--ink);
}

.nav-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--mono-font);
  font-size: 11px;
}

.sidebar-plan {
  margin-top: 30px;
}

.sidebar-label,
.section-kicker,
.dialog-step {
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-label {
  padding: 0 10px;
  margin-bottom: 9px;
}

.mini-plan {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.mini-plan.active {
  background: var(--surface);
}

.mini-plan.muted {
  color: var(--muted);
}

.mini-plan-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
}

.mini-plan-dot.coral {
  background: var(--coral);
}

.mini-plan span:last-child,
.sidebar-user span {
  display: grid;
}

.mini-plan strong {
  font-size: 13px;
  font-weight: 650;
}

.mini-plan small,
.sidebar-user small {
  color: var(--faint);
  font-size: 11px;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 34px 1fr 32px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 6px 0;
  border-top: 1px solid var(--line);
}

.sidebar-user img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user strong {
  font-size: 13px;
}

.main-content {
  min-height: 100vh;
  margin-left: 232px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(216, 222, 217, 0.9);
  background: rgba(244, 246, 243, 0.95);
  backdrop-filter: blur(16px);
}

.mobile-brand {
  display: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 650;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #aeb8b1;
}

.button.compact {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.icon-button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  color: var(--green);
}

.button:focus-visible,
.icon-button:focus-visible,
.create-button:focus-visible,
.nav-item:focus-visible,
.history-row:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 110, 80, 0.22);
  outline-offset: 2px;
}

.content-wrap {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 44px 42px 72px;
}

.plan-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.plan-title-block {
  max-width: 820px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.divider-dot {
  width: 3px;
  height: 3px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--faint);
}

.plan-heading h1 {
  max-width: 780px;
  font-family: var(--display-font);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
}

.plan-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.plan-people {
  display: flex;
  min-width: 244px;
  align-items: center;
  gap: 13px;
  padding-bottom: 4px;
}

.avatar-pair {
  display: flex;
}

.avatar-pair img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.avatar-pair img + img {
  margin-left: -12px;
}

.plan-people > div:last-child {
  display: grid;
  gap: 1px;
}

.plan-people span {
  color: var(--muted);
  font-size: 12px;
}

.plan-people strong {
  font-size: 13px;
}

.plan-progress {
  margin-top: 28px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.progress-track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
}

.perspective-merge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.perspective-person {
  min-height: 132px;
  padding: 22px 24px;
}

.perspective-person.initiator {
  border-left: 4px solid var(--green);
}

.perspective-person.recipient {
  border-right: 4px solid var(--coral);
}

.person-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.person-line img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.perspective-person p {
  max-width: 410px;
  margin-top: 14px;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.merge-decision {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.merge-decision > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px;
}

.merge-decision > div > .icon {
  color: var(--yellow);
}

.merge-decision small {
  color: #b7c1ba;
  font-size: 11px;
}

.merge-decision strong {
  max-width: 210px;
  font-size: 14px;
}

.merge-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.merge-arrow.left {
  left: -14px;
}

.merge-arrow.right {
  right: -14px;
  transform: translateY(-50%) rotate(180deg);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 42px;
  margin-top: 50px;
}

.section-heading {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.3;
}

.segmented {
  display: inline-flex;
  min-height: 34px;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segmented button {
  min-width: 76px;
  padding: 0 10px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(24, 34, 28, 0.09);
}

.ogsm-board {
  position: relative;
}

.ogsm-board::before {
  position: absolute;
  top: 31px;
  bottom: 42px;
  left: 27px;
  width: 1px;
  background: var(--line);
  content: "";
}

.ogsm-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.ogsm-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ogsm-label > span {
  display: inline-grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
}

.ogsm-label > div {
  display: grid;
  gap: 1px;
  padding-top: 7px;
}

.ogsm-label strong {
  font-size: 13px;
}

.ogsm-label small {
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.strategy-node {
  position: relative;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  animation: node-in 420ms both;
}

.strategy-node h3 {
  font-size: 15px;
  line-height: 1.4;
}

.strategy-node p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.node-origin,
.strategy-index {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 700;
}

.objective-node {
  min-height: 98px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.objective-node h3 {
  font-family: var(--display-font);
  font-size: 21px;
}

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

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

.goals-grid .strategy-node h3 {
  font-family: var(--mono-font);
  font-size: 18px;
}

.strategies-grid .strategy-node {
  min-height: 178px;
  padding-bottom: 48px;
}

.strategy-state {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

.strategy-state.good {
  background: var(--green-soft);
  color: var(--green-dark);
}

.strategy-state.trial {
  background: var(--coral-soft);
  color: #994638;
}

.strategy-state.support {
  background: var(--yellow-soft);
  color: #755b16;
}

.changed-node {
  border-color: rgba(217, 105, 88, 0.65);
  box-shadow: inset 0 3px 0 var(--coral);
}

.old-version {
  display: none;
  margin-top: 14px;
  padding: 10px;
  border-left: 2px solid var(--coral);
  background: var(--coral-soft);
  color: #773b32;
}

.old-version small,
.old-version span {
  display: block;
  font-size: 10px;
}

.old-version span {
  margin-top: 3px;
  text-decoration: line-through;
}

body.show-diff .old-version {
  display: block;
}

body.show-diff .strategies-grid .strategy-node {
  min-height: 226px;
}

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

.measure-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 8px 0;
}

.signal-icon {
  display: inline-grid;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono-font);
  font-size: 12px;
}

.signal-icon.up {
  background: var(--green-soft);
  color: var(--green-dark);
}

.signal-icon.flat {
  background: var(--yellow-soft);
  color: #755b16;
}

.measure-list strong {
  font-family: var(--mono-font);
  font-size: 15px;
}

.measure-list small {
  color: var(--faint);
  font-size: 10px;
}

.ai-note {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  margin-top: 18px;
  padding: 17px 18px;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
}

.ai-note > .icon {
  margin-top: 2px;
  color: #856710;
}

.ai-note strong {
  font-size: 12px;
}

.ai-note p {
  margin-top: 3px;
  color: #675c39;
  font-size: 12px;
}

.text-button {
  align-self: center;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #6f5610;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.milestone-section {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.compact-heading {
  align-items: center;
}

.milestone-list {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.milestone-list::before {
  position: absolute;
  top: 14px;
  bottom: 28px;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}

.milestone-list li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  min-height: 98px;
}

.milestone-mark {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
}

.milestone-mark .icon {
  width: 14px;
  height: 14px;
}

.milestone-list .done .milestone-mark {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.milestone-list .current .milestone-mark {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral);
  box-shadow: 0 0 0 5px rgba(217, 105, 88, 0.08);
}

.milestone-list small,
.milestone-list strong,
.milestone-list p {
  display: block;
}

.milestone-list small {
  color: var(--faint);
  font-size: 10px;
}

.milestone-list strong {
  margin-top: 2px;
  font-size: 13px;
}

.milestone-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.pending-action {
  padding: 17px;
  border: 1px solid rgba(217, 105, 88, 0.45);
  border-radius: var(--radius);
  background: var(--coral-soft);
}

.pending-people {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pending-people img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.pending-people div {
  display: grid;
}

.pending-people small {
  color: #865145;
  font-size: 10px;
}

.pending-people strong {
  font-size: 12px;
}

.notification-rule {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.notification-rule p {
  display: grid;
  gap: 3px;
}

.notification-rule strong {
  color: var(--ink);
  font-size: 11px;
}

.notification-rule span {
  font-size: 10px;
}

.version-history {
  margin-top: 56px;
}

.history-table {
  display: grid;
}

.history-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr 80px;
  gap: 20px;
  width: 100%;
  min-height: 62px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.history-row:not(.header-row):hover {
  background: rgba(255, 255, 255, 0.56);
}

.history-row.header-row {
  min-height: 42px;
  color: var(--faint);
  cursor: default;
  font-size: 10px;
  font-weight: 700;
}

.history-row span:first-child {
  display: grid;
}

.history-row strong {
  color: var(--ink);
  font-family: var(--mono-font);
}

.history-row small {
  color: var(--faint);
  font-size: 9px;
}

.history-status {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.history-status.current {
  background: var(--green-soft);
  color: var(--green-dark);
}

.mobile-nav {
  display: none;
}

.dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dialog:focus,
.dialog:focus-visible {
  outline: 0;
}

.dialog::backdrop {
  background: rgba(14, 22, 17, 0.52);
  backdrop-filter: blur(4px);
}

.dialog[open] {
  animation: dialog-in 200ms ease-out both;
}

.dialog-frame {
  max-height: calc(100vh - 40px);
  padding: 26px 30px 96px;
  overflow: auto;
}

.dialog-frame.narrow {
  width: min(520px, 100%);
  margin: 0 auto;
}

.dialog-header,
.recipient-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin-top: 4px;
  font-family: var(--display-font);
  font-size: 25px;
  line-height: 1.3;
}

.create-step {
  display: none;
  padding-top: 24px;
}

.create-step.active {
  display: block;
}

.form-grid {
  display: grid;
  gap: 15px;
}

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

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.field > span {
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfb;
  color: var(--ink);
  outline: 0;
}

.field input,
.field select {
  height: 42px;
  padding: 0 12px;
}

.field textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.field > small {
  color: var(--faint);
  font-size: 10px;
}

.dialog-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.privacy-note .icon {
  width: 15px;
  height: 15px;
}

.generating-state {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  padding: 50px 20px;
  text-align: center;
}

.generating-mark {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  animation: pulse 1.1s ease-in-out infinite;
}

.generating-mark .icon {
  width: 26px;
  height: 26px;
}

.generating-state h3 {
  margin-top: 20px;
  font-family: var(--display-font);
  font-size: 22px;
}

.generating-state p {
  max-width: 420px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-progress {
  display: grid;
  width: min(500px, 100%);
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 17px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f5 100%);
  box-shadow: 0 18px 46px rgba(47, 110, 80, 0.1);
  text-align: left;
}

.strategy-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green) 0deg 88deg, #f1d06a 120deg 172deg, #dfe8e1 210deg 360deg);
  animation: strategy-spin 2.6s linear infinite;
}

.strategy-orbit::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dfe7e2;
  content: "";
}

.strategy-orbit span,
.strategy-orbit i {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.strategy-orbit span {
  top: 2px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(217, 105, 88, 0.13);
}

.strategy-orbit i {
  inset: 29px;
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(47, 110, 80, 0.1);
  animation: strategy-breathe 1.4s ease-in-out infinite;
}

.strategy-meter {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.strategy-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-meter-top span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.strategy-meter-top strong {
  color: var(--green-dark);
  font-family: var(--mono-font);
  font-size: 18px;
}

.strategy-rail {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e8e3;
}

.strategy-rail i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 62%, var(--coral) 100%);
  transition: width 420ms ease;
}

.strategy-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
}

.strategy-steps span {
  position: relative;
  min-height: 28px;
  padding: 7px 8px;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.strategy-steps span.done,
.strategy-steps span.active {
  border-color: rgba(47, 110, 80, 0.32);
  background: var(--green-soft);
  color: var(--green-dark);
}

.strategy-steps span.active::after {
  position: absolute;
  right: 8px;
  bottom: -4px;
  left: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  content: "";
}

.generation-lines {
  display: grid;
  width: min(380px, 100%);
  gap: 7px;
  margin-top: 28px;
}

.generation-lines span {
  height: 5px;
  border-radius: 3px;
  background: var(--surface-soft);
  animation: line-fill 1.6s ease-in-out infinite;
}

.generation-lines span:nth-child(2) { width: 86%; animation-delay: 100ms; }
.generation-lines span:nth-child(3) { width: 72%; animation-delay: 200ms; }
.generation-lines span:nth-child(4) { width: 91%; animation-delay: 300ms; }

.proposal-summary {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.proposal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.proposal-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 700;
}

.proposal-label .icon {
  width: 14px;
  height: 14px;
}

.proposal-summary h3 {
  margin-top: 14px;
  font-family: var(--display-font);
  font-size: 23px;
}

.proposal-summary p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.proposal-ogsm {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.proposal-ogsm > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.proposal-ogsm > div > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--green);
  font-family: var(--display-font);
  font-weight: 700;
}

.proposal-ogsm p {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}

.proposal-ogsm strong {
  color: var(--ink);
  font-size: 12px;
}

.node-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--line);
}

.node-preview span {
  min-height: 48px;
  padding: 9px;
  background: var(--surface-soft);
  font-size: 10px;
}

.proposal-warning,
.change-explain {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--yellow-soft);
  color: #675c39;
  font-size: 11px;
}

.proposal-warning strong {
  display: block;
  color: #4d441f;
}

.share-preview {
  padding: 24px 0 10px;
}

.mini-program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(24, 34, 28, 0.08);
}

.mini-program-card .mini-card-brand {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mini-program-card > p,
.mini-program-card > strong {
  display: block;
  padding-right: 20px;
  padding-left: 20px;
}

.mini-program-card > p {
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.mini-program-card > strong {
  max-width: 380px;
  padding-top: 6px;
  padding-bottom: 24px;
  font-family: var(--display-font);
  font-size: 18px;
}

.mini-card-footer {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 650;
}

.share-privacy {
  margin-top: 12px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.share-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.recipient-frame {
  width: min(520px, 100%);
  margin: 0 auto;
}

.recipient-header {
  align-items: center;
}

.recipient-intro {
  padding: 28px 0 20px;
  text-align: center;
}

.recipient-intro img {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}

.recipient-intro > span {
  color: var(--muted);
  font-size: 11px;
}

.recipient-intro h2 {
  margin-top: 10px;
  font-family: var(--display-font);
  font-size: 26px;
}

.recipient-intro p {
  max-width: 400px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.recipient-plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recipient-plan-summary > div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  text-align: center;
}

.recipient-plan-summary > div + div {
  border-left: 1px solid var(--line);
}

.recipient-plan-summary small {
  color: var(--faint);
  font-size: 9px;
}

.recipient-plan-summary strong {
  font-size: 12px;
}

.recipient-field {
  margin-top: 22px;
}

.recipient-choice {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 9px;
}

.impact-summary {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft);
}

.impact-level {
  display: grid;
}

.impact-level span,
.impact-level small {
  color: #76672e;
  font-size: 9px;
}

.impact-level strong {
  font-family: var(--display-font);
  font-size: 24px;
}

.impact-summary > p {
  color: #675c39;
  font-size: 12px;
}

.diff-table {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: stretch;
  margin-top: 22px;
}

.diff-column {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diff-column.old {
  background: var(--surface-soft);
  color: var(--muted);
}

.diff-column.new {
  border-color: rgba(217, 105, 88, 0.6);
  background: var(--coral-soft);
}

.diff-column small,
.diff-column strong,
.diff-column p {
  display: block;
}

.diff-column small {
  font-family: var(--mono-font);
  font-size: 9px;
}

.diff-column strong {
  margin-top: 13px;
  font-size: 15px;
}

.diff-column p {
  margin-top: 7px;
  font-size: 11px;
}

.diff-arrow {
  display: grid;
  place-items: center;
  color: var(--coral);
}

.replan-effects {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.replan-effects > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.replan-effects .icon {
  color: var(--green);
}

.replan-effects strong {
  display: block;
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .icon {
  color: #9ed3ae;
}

@keyframes node-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(47, 110, 80, 0.08); }
}

@keyframes line-fill {
  0%, 100% { background: var(--surface-soft); }
  50% { background: var(--green-soft); }
}

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

@keyframes strategy-breathe {
  0%, 100% { transform: scale(0.78); opacity: 0.82; }
  50% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-orbit,
  .strategy-orbit i,
  .generating-mark {
    animation: none;
  }

  .strategy-rail i {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .content-wrap {
    padding-right: 28px;
    padding-left: 28px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .milestone-section {
    padding-left: 0;
    border-left: 0;
  }

  .milestone-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .milestone-list::before {
    top: 14px;
    right: 14px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .milestone-list li {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .pending-action {
    max-width: 360px;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 70px;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    height: 60px;
    padding: 0 18px;
  }

  .mobile-brand {
    display: flex;
    font-family: var(--display-font);
  }

  .mobile-brand .brand-mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 15px;
  }

  .breadcrumb {
    display: none;
  }

  .topbar-actions .secondary {
    display: none;
  }

  .content-wrap {
    padding: 30px 18px 48px;
  }

  .plan-heading {
    display: grid;
  }

  .plan-heading h1 {
    font-size: 31px;
  }

  .plan-people {
    min-width: 0;
  }

  .perspective-merge {
    grid-template-columns: 1fr;
  }

  .perspective-person {
    min-height: auto;
  }

  .merge-decision {
    min-height: 112px;
    border: 0;
  }

  .merge-arrow {
    display: none;
  }

  .goals-grid,
  .strategies-grid,
  .measure-list {
    grid-template-columns: 1fr;
  }

  .strategies-grid .strategy-node {
    min-height: 142px;
  }

  body.show-diff .strategies-grid .strategy-node {
    min-height: 190px;
  }

  .history-row {
    grid-template-columns: 72px 1fr 74px;
  }

  .history-row span:nth-child(3) {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(250, 251, 250, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-nav .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav .active,
  .mobile-nav button {
    color: var(--green-dark);
  }

  .toast {
    right: 14px;
    bottom: 78px;
    left: 14px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .topbar-actions .button span {
    display: none;
  }

  .topbar-actions .button {
    width: 36px;
    padding: 0;
  }

  .plan-heading h1 {
    font-size: 29px;
  }

  .progress-copy {
    display: grid;
    gap: 2px;
  }

  .workspace-grid {
    gap: 34px;
  }

  .section-heading {
    align-items: center;
  }

  .ogsm-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ogsm-board::before {
    display: none;
  }

  .ogsm-label > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 17px;
  }

  .ogsm-label > div {
    padding-top: 0;
  }

  .ogsm-label small {
    white-space: normal;
  }

  .ai-note {
    grid-template-columns: 22px 1fr;
  }

  .ai-note .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .milestone-list {
    grid-template-columns: 1fr;
  }

  .milestone-list::before {
    right: auto;
    bottom: 28px;
    width: 1px;
    height: auto;
  }

  .milestone-list li {
    grid-template-columns: 30px 1fr;
  }

  .dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 8px 8px 0 0;
  }

  .dialog-frame {
    max-height: 100dvh;
    padding: 22px 18px calc(120px + env(safe-area-inset-bottom));
  }

  .dialog-header h2 {
    font-size: 22px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dialog-footer {
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-footer .button {
    width: 100%;
  }

  .privacy-note {
    justify-content: center;
  }

  .split-footer {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .proposal-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .node-preview {
    grid-template-columns: 1fr 1fr;
  }

  .node-preview span:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    text-align: center;
  }

  .recipient-plan-summary {
    grid-template-columns: 1fr;
  }

  .recipient-plan-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .impact-summary {
    grid-template-columns: 1fr;
  }

  .diff-table {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .diff-arrow {
    height: 28px;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Consumer surface: a personal relationship product, not a management console. */
:root {
  --paper: #f7f7f3;
  --surface: #ffffff;
  --surface-soft: #eff1eb;
  --ink: #25232a;
  --muted: #77737c;
  --faint: #a09ca3;
  --line: #e1e2dc;
  --green: #3f5fe5;
  --green-dark: #2b3da8;
  --green-soft: #e8ebff;
  --coral: #e36b58;
  --coral-soft: #fbe8e2;
  --yellow: #e7b94f;
  --yellow-soft: #fbf0d3;
  --shadow: 0 22px 70px rgba(37, 35, 42, 0.12);
}

body {
  background: var(--paper);
}

.consumer-shell {
  min-height: 100vh;
  background: var(--paper);
}

.consumer-header {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.consumer-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

.consumer-brand .brand-name {
  font-family: var(--body-font);
  font-size: 17px;
  letter-spacing: 0.02em;
}

.person-switcher {
  display: flex;
  min-width: 170px;
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.person-switcher:hover {
  border-color: #bfc4cf;
  background: var(--surface);
}

.switcher-avatars {
  position: relative;
  width: 30px;
  height: 30px;
}

.switcher-avatars img {
  width: 30px;
  height: 30px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.switcher-avatars i {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
}

.person-switcher > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0;
}

.person-switcher small {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.1;
}

.person-switcher strong {
  font-size: 12px;
  line-height: 1.4;
}

.person-switcher > .icon {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--faint);
}

.consumer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.round-action {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
}

.round-action:hover {
  color: var(--green-dark);
  background: var(--surface);
}

.round-action.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.consumer-main {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 55px 0 100px;
}

.consumer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: end;
  gap: 30px;
}

.consumer-kicker {
  color: var(--green-dark);
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 700;
}

.consumer-intro h1 {
  margin-top: 14px;
  font-family: var(--display-font);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.consumer-intro h1 em {
  color: var(--green);
  font-style: normal;
}

.consumer-intro p {
  max-width: 460px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
}

.goal-agreement {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 10px;
}

.agreement-avatars {
  display: flex;
  padding-left: 6px;
}

.agreement-avatars img {
  width: 25px;
  height: 25px;
  margin-left: -6px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.hero-portrait {
  position: relative;
  width: 176px;
  height: 176px;
  justify-self: end;
}

.hero-portrait::before {
  position: absolute;
  inset: -12px 14px 16px -10px;
  border: 1px solid #cfd3cb;
  border-radius: 50%;
  content: "";
  transform: rotate(-13deg);
}

.hero-portrait img {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border: 8px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(37, 35, 42, 0.16);
}

.portrait-note {
  position: absolute;
  right: -4px;
  bottom: 2px;
  display: inline-block;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--yellow);
  color: #574617;
  font-family: var(--display-font);
  font-size: 12px;
  line-height: 1.25;
  transform: rotate(4deg);
}

.now-plan {
  position: relative;
  margin-top: 48px;
  padding: 28px 30px 24px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.now-plan::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.now-plan-top,
.now-plan-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.now-label,
.now-date {
  color: #bfc6bf;
  font-family: var(--mono-font);
  font-size: 10px;
}

.now-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d9e2dc;
}

.now-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(231, 185, 79, 0.12);
}

.now-plan h2 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 26px;
  font-family: var(--display-font);
  font-size: 29px;
  line-height: 1.35;
}

.now-plan > p {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin-top: 8px;
  color: #c6cec7;
  font-size: 13px;
}

.now-plan-bottom {
  margin-top: 30px;
}

.plan-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6cec7;
  font-size: 11px;
}

.plan-source img {
  width: 23px;
  height: 23px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.now-plan .button.primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--ink);
}

.now-plan .button.primary:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.signal-strip > div {
  display: grid;
  gap: 3px;
  padding: 17px 20px 18px 0;
}

.signal-strip > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.signal-strip small {
  color: var(--faint);
  font-size: 10px;
}

.signal-strip strong {
  font-family: var(--mono-font);
  font-size: 19px;
}

.signal-strip strong i {
  color: var(--faint);
  font-size: 11px;
  font-style: normal;
}

.signal-strip span {
  color: var(--muted);
  font-size: 10px;
}

.signal-strip .signal-up {
  color: var(--green-dark);
}

.month-route {
  margin-top: 22px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.route-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.route-heading > span {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
}

.route-heading > strong {
  color: var(--green-dark);
  font-size: 11px;
}

.route-track {
  position: relative;
  height: 5px;
  margin: 18px 0 14px;
  border-radius: 3px;
  background: var(--line);
}

.route-track > span {
  display: block;
  width: 36.7%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.route-track > i {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(227, 107, 88, 0.28);
  transform: translate(-50%, -50%);
}

.route-phases {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1.2fr 1.2fr;
}

.route-phases > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-right: 14px;
}

.route-phases > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.route-phases small {
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 9px;
}

.route-phases strong {
  font-size: 13px;
}

.route-phases span {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-phases .done strong,
.route-phases .active strong {
  color: var(--green-dark);
}

.route-phases .active span {
  color: var(--coral);
  font-weight: 700;
}

.consumer-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.consumer-section-title > span {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
}

.consumer-section-title > small {
  color: var(--faint);
  font-size: 10px;
}

.consumer-perspectives {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  gap: 0;
  margin-top: 52px;
  border: 0;
  background: transparent;
}

.consumer-perspectives .consumer-section-title {
  grid-column: 1 / -1;
}

.consumer-perspectives .perspective-person {
  min-height: 160px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.consumer-perspectives .perspective-person.initiator {
  border-right: 0;
  border-left: 3px solid var(--green);
  border-radius: 8px 0 0 8px;
}

.consumer-perspectives .perspective-person.recipient {
  border-right: 3px solid var(--coral);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.consumer-perspectives .perspective-person p {
  max-width: 330px;
  font-size: 16px;
}

.consumer-perspectives .merge-decision {
  min-height: 160px;
  border: 0;
  border-radius: 0;
  background: var(--green-soft);
  color: var(--green-dark);
}

.consumer-perspectives .merge-decision > div > .icon {
  color: var(--green);
}

.consumer-perspectives .merge-decision small {
  color: var(--green-dark);
}

.consumer-perspectives .merge-decision strong {
  max-width: 132px;
  font-family: var(--display-font);
  font-size: 15px;
}

.consumer-perspectives .merge-arrow {
  background: var(--green-soft);
  color: var(--green-dark);
}

.strategy-story {
  margin-top: 62px;
  padding-top: 2px;
}

.story-axis {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.story-block {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.story-letter {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 700;
}

.story-block small {
  color: var(--faint);
  font-size: 10px;
}

.story-block h2 {
  margin-top: 6px;
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.4;
}

.story-block p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.goal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.goal-pills span {
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.story-strategies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.story-strategies > div {
  position: relative;
  min-height: 145px;
  padding: 16px 15px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.story-strategies > div > i {
  display: block;
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 10px;
  font-style: normal;
}

.story-strategies > div > strong,
.story-strategies > div > span {
  display: block;
}

.story-strategies > div > strong {
  margin-top: 16px;
  font-size: 14px;
}

.story-strategies > div > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.story-strategy-changed {
  border-color: rgba(227, 107, 88, 0.7) !important;
  box-shadow: inset 0 3px 0 var(--coral);
}

.story-strategies em {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--coral-soft);
  color: #954738;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.story-strategies .old-version {
  margin-top: 12px;
  padding: 8px;
}

body.show-diff .story-strategies > div {
  min-height: 196px;
}

.measures-block {
  padding-bottom: 18px;
}

.measure-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.measure-inline span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.measure-inline strong {
  margin-left: 4px;
  color: var(--green-dark);
}

.story-adjust {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.story-adjust:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.execution-plan {
  margin-top: 62px;
}

.execution-lead {
  max-width: 620px;
  margin-top: -7px;
  color: var(--muted);
  font-size: 13px;
}

.daily-sprint {
  margin-top: 25px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.execution-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.execution-block-heading small,
.plan-subheading small,
.parent-support small {
  color: var(--faint);
  font-size: 10px;
}

.execution-block-heading h2 {
  margin-top: 5px;
  font-family: var(--display-font);
  font-size: 25px;
}

.execution-block-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.execution-block-heading em {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 4px;
  background: var(--coral-soft);
  color: #954738;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.study-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.study-timeline > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 18px 16px;
}

.study-timeline > div + div {
  border-left: 1px solid var(--line);
}

.study-timeline time {
  color: var(--green);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
}

.study-timeline strong,
.study-timeline small {
  display: block;
}

.study-timeline strong {
  font-size: 13px;
}

.study-timeline small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.daily-sprint > .old-version {
  margin-top: 14px;
}

.plan-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 16px;
}

.plan-subheading > span {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 700;
}

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

.subject-plan {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.subject-plan header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.subject-plan header > span {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
}

.subject-plan header > strong {
  color: var(--green-dark);
  font-family: var(--mono-font);
  font-size: 12px;
}

.english-plan header > strong {
  color: var(--coral);
}

.subject-plan ol {
  list-style: none;
}

.subject-plan li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.subject-plan li > span {
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 10px;
}

.subject-plan li strong {
  font-size: 13px;
}

.subject-plan li p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.weekly-rhythm {
  margin-top: 52px;
}

.weekly-rhythm .plan-subheading {
  margin-top: 0;
}

.rhythm-row {
  display: grid;
  grid-template-columns: 120px 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 57px;
  border-top: 1px solid var(--line);
}

.rhythm-row:last-child {
  border-bottom: 1px solid var(--line);
}

.rhythm-row time {
  color: var(--green-dark);
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 700;
}

.rhythm-row strong {
  font-size: 12px;
}

.rhythm-row span {
  color: var(--muted);
  font-size: 10px;
}

.parent-support {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.parent-support img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.parent-support strong,
.parent-support p {
  display: block;
}

.parent-support strong {
  margin-top: 3px;
  font-size: 13px;
}

.parent-support p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.next-moment {
  margin-top: 65px;
}

.next-moment-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.next-date {
  display: grid;
  justify-items: center;
  padding: 8px 0;
  border-radius: 5px;
  background: var(--yellow);
  color: #574617;
}

.next-date strong {
  font-family: var(--mono-font);
  font-size: 24px;
  line-height: 1;
}

.next-date span {
  margin-top: 4px;
  font-size: 10px;
}

.next-tag {
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
}

.next-moment-row h2 {
  margin-top: 4px;
  font-family: var(--display-font);
  font-size: 19px;
}

.next-moment-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.consumer-history {
  margin-top: 65px;
}

.history-line {
  display: grid;
  grid-template-columns: 60px 1fr 82px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.history-line > span {
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 700;
}

.history-line.current > span {
  color: var(--green);
}

.history-line small {
  color: var(--faint);
  font-size: 10px;
  text-align: right;
}

.consumer-bottom-nav {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(420px, calc(100% - 36px));
  min-height: 58px;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid rgba(225, 226, 220, 0.9);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(37, 35, 42, 0.14);
  backdrop-filter: blur(18px);
}

.consumer-bottom-nav a,
.consumer-bottom-nav button {
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 25px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 9px;
}

.consumer-bottom-nav a.active,
.consumer-bottom-nav button {
  background: var(--ink);
  color: #fff;
}

.consumer-bottom-nav .icon {
  width: 17px;
  height: 17px;
}

@media (min-width: 901px) {
  body {
    padding-bottom: 92px;
  }

  .consumer-bottom-nav {
    right: 28px;
    bottom: 28px;
    left: auto;
    width: 272px;
  }
}

@media (max-width: 700px) {
  .consumer-header {
    width: calc(100% - 36px);
    height: 64px;
    grid-template-columns: 1fr auto;
  }

  .consumer-brand .brand-name {
    font-size: 15px;
  }

  .person-switcher {
    display: none;
  }

  .consumer-actions {
    gap: 5px;
  }

  .consumer-main {
    width: calc(100% - 36px);
    padding-top: 36px;
    padding-bottom: 110px;
  }

  .consumer-intro {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 8px;
  }

  .consumer-intro h1 {
    margin-top: 10px;
    font-size: 34px;
  }

  .consumer-intro p {
    font-size: 12px;
  }

  .goal-agreement {
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.5;
  }

  .hero-portrait {
    width: 90px;
    height: 126px;
  }

  .hero-portrait img {
    width: 88px;
    height: 88px;
    border-width: 5px;
  }

  .hero-portrait::before {
    inset: -8px 2px 29px -6px;
  }

  .portrait-note {
    right: -5px;
    bottom: 4px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .now-plan {
    margin-top: 34px;
    padding: 23px 20px 19px;
  }

  .now-plan h2 {
    margin-top: 23px;
    font-size: 23px;
  }

  .now-plan > p {
    font-size: 12px;
  }

  .now-plan-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 24px;
  }

  .now-plan .button {
    width: 100%;
  }

  .route-heading {
    display: grid;
    gap: 4px;
  }

  .route-heading > span {
    font-size: 17px;
  }

  .route-heading > strong {
    font-size: 10px;
  }

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

  .route-phases > div {
    padding-right: 7px;
  }

  .route-phases > div + div {
    padding-left: 7px;
  }

  .route-phases strong {
    font-size: 11px;
  }

  .route-phases span {
    font-size: 8px;
  }

  .signal-strip > div {
    padding-right: 10px;
  }

  .signal-strip > div + div {
    padding-left: 10px;
  }

  .signal-strip strong {
    font-size: 14px;
  }

  .signal-strip span,
  .signal-strip small {
    font-size: 9px;
  }

  .consumer-section-title {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
  }

  .consumer-section-title > span {
    font-size: 19px;
  }

  .execution-plan {
    margin-top: 48px;
  }

  .execution-lead {
    font-size: 11px;
  }

  .execution-block-heading {
    display: grid;
    gap: 12px;
  }

  .execution-block-heading h2 {
    font-size: 22px;
  }

  .execution-block-heading em {
    justify-self: start;
  }

  .study-timeline {
    grid-template-columns: 1fr;
  }

  .study-timeline > div {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 15px;
  }

  .study-timeline > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .plan-subheading {
    display: grid;
    gap: 3px;
    margin-top: 40px;
  }

  .plan-subheading > span {
    font-size: 18px;
  }

  .subject-plans {
    grid-template-columns: 1fr;
  }

  .subject-plan {
    padding: 19px;
  }

  .weekly-rhythm {
    margin-top: 42px;
  }

  .rhythm-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 13px 0;
  }

  .rhythm-row span {
    grid-column: 2;
  }

  .parent-support {
    align-items: start;
  }

  .consumer-perspectives {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 44px;
  }

  .consumer-perspectives .perspective-person.initiator,
  .consumer-perspectives .perspective-person.recipient {
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 8px 8px 0 0;
  }

  .consumer-perspectives .perspective-person.recipient {
    border-right-width: 3px;
    border-left-width: 1px;
    border-radius: 0 0 8px 8px;
  }

  .consumer-perspectives .merge-decision {
    min-height: 102px;
  }

  .consumer-perspectives .merge-decision .merge-arrow {
    display: none;
  }

  .story-block {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .story-letter {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .story-block h2 {
    font-size: 19px;
  }

  .story-strategies {
    grid-template-columns: 1fr;
  }

  .story-strategies > div {
    min-height: 118px;
  }

  body.show-diff .story-strategies > div {
    min-height: 170px;
  }

  .next-moment-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .next-moment-row .button {
    grid-column: 2;
    justify-self: start;
  }

  .next-moment-row h2 {
    font-size: 17px;
  }

  .history-line {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 8px 0;
  }

  .history-line small {
    grid-column: 2;
    text-align: left;
  }

  .consumer-bottom-nav {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}

/* Progressive detail: the home page stays quiet, the execution manual opens on demand. */
.phase-overview {
  margin-top: 48px;
}

.phase-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.phase-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 13px 4px 13px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, padding 160ms ease;
}

.phase-row:hover,
.phase-row:focus-visible {
  padding-left: 10px;
  padding-right: 0;
  background: rgba(255, 255, 255, 0.68);
}

.phase-row .icon {
  color: var(--faint);
}

.phase-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
}

.phase-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.phase-copy small {
  color: var(--faint);
  font-size: 10px;
}

.phase-copy strong {
  font-family: var(--display-font);
  font-size: 20px;
  line-height: 1.25;
}

.phase-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-row.done .phase-number {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.phase-row.current {
  background: rgba(232, 235, 255, 0.46);
}

.phase-row.current .phase-number {
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 0 0 5px rgba(63, 95, 229, 0.08);
}

.phase-row.current .phase-copy strong {
  color: var(--green-dark);
}

.detail-dialog {
  width: min(900px, calc(100vw - 32px));
}

.detail-frame {
  padding-top: 28px;
  background: linear-gradient(180deg, #fbfcfa 0%, #ffffff 210px);
}

.detail-dialog .dialog-header {
  padding-bottom: 20px;
}

.detail-dialog .dialog-header h2 {
  max-width: 620px;
  font-size: 28px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.detail-summary > div {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #dfe6e1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 34, 28, 0.06);
}

.detail-summary > div + div {
  border-left: 1px solid #dfe6e1;
}

.detail-summary small {
  color: var(--faint);
  font-size: 10px;
}

.detail-summary strong {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.2;
}

.detail-summary span {
  color: var(--muted);
  font-size: 10px;
}

.detail-body {
  padding-bottom: 10px;
}

.detail-section {
  padding: 28px 0 2px;
  border-bottom: 1px solid var(--line);
}

.detail-section.elevated {
  padding-top: 22px;
  border-bottom: 0;
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-section-heading span {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 700;
}

.detail-section-heading small {
  color: var(--faint);
  font-size: 10px;
}

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

.detail-timeline > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid #dfe6e1;
  border-radius: 7px;
  background: #fff;
}

.detail-timeline time {
  color: var(--green-dark);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 700;
}

.detail-timeline strong {
  display: block;
  font-size: 14px;
}

.detail-timeline p {
  max-width: 620px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 34px;
}

.detail-columns .detail-section-heading {
  margin-bottom: 12px;
}

.detail-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 11px;
}

.detail-checklist li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--green);
  border-radius: 50%;
  content: "";
}

.detail-support {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

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

.detail-day-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-day-grid > div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #dfe6e1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 34, 28, 0.05);
}

.detail-day-grid span {
  color: var(--green);
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 700;
}

.detail-day-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.detail-day-grid p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.detail-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #dbe5dd;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f8f5 0%, #ffffff 78%);
}

.detail-mission div {
  display: grid;
  gap: 5px;
}

.detail-mission span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
}

.detail-mission strong {
  font-family: var(--display-font);
  font-size: 24px;
  line-height: 1.25;
}

.detail-mission p {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
}

.detail-mission em {
  align-self: stretch;
  display: grid;
  min-width: 138px;
  place-items: center;
  padding: 12px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.detail-action-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.detail-action-card {
  position: relative;
  display: grid;
  min-height: 174px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 34, 28, 0.06);
}

.detail-action-card::after {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #eef3ef;
  content: attr(data-step);
  font-family: var(--display-font);
  font-size: 58px;
  line-height: 1;
}

.detail-action-card time {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #816925;
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 750;
}

.detail-action-card > span {
  position: absolute;
  top: 14px;
  right: 15px;
  color: #b5bdb7;
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 700;
}

.detail-action-card strong {
  position: relative;
  z-index: 1;
  padding-right: 28px;
  font-size: 14px;
  line-height: 1.35;
}

.detail-action-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.detail-lens-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  padding-top: 12px;
}

.detail-lens {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  background: #fff;
}

.detail-lens.support {
  background: #fff8ee;
  border-color: #efdfbe;
}

.detail-lens > span {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
}

.detail-lens ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-lens li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 11px;
}

.detail-lens li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--green);
  border-radius: 50%;
  content: "";
}

.detail-lens p {
  color: #6e5f3a;
  font-size: 11px;
  line-height: 1.7;
}

.detail-footer {
  align-items: center;
}

.detail-footer .button {
  min-height: 38px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .phase-overview {
    margin-top: 38px;
  }

  .phase-row {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 84px;
  }

  .phase-number {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .phase-copy strong {
    font-size: 18px;
  }

  .phase-copy em {
    font-size: 10px;
  }

  .detail-dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 10px 10px 0 0;
  }

  .detail-dialog .detail-frame {
    max-height: 100dvh;
    padding: 22px 18px calc(122px + env(safe-area-inset-bottom));
  }

  .detail-dialog .dialog-header h2 {
    font-size: 23px;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .detail-summary > div {
    min-height: 68px;
    padding: 11px 14px;
  }

  .detail-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-summary strong {
    font-size: 20px;
  }

  .detail-mission {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
  }

  .detail-mission strong {
    font-size: 21px;
  }

  .detail-mission em {
    min-width: 0;
    min-height: 42px;
  }

  .detail-section {
    padding-top: 24px;
  }

  .detail-section-heading {
    display: grid;
    gap: 3px;
  }

  .detail-timeline > div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding: 15px 0;
  }

  .detail-timeline p {
    font-size: 10px;
  }

  .detail-columns {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .detail-action-deck,
  .detail-lens-grid {
    grid-template-columns: 1fr;
  }

  .detail-day-grid,
  .detail-day-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-day-grid > div {
    min-height: 105px;
    padding: 12px;
  }

  .detail-footer {
    display: flex;
  }
}

/* Multi-person home: relationship events first, plans second. */
[hidden] {
  display: none !important;
}

.consumer-brand,
.goal-back-brand {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.home-shell {
  min-height: 100vh;
  background: var(--paper);
}

.home-header-date {
  position: relative;
  display: inline-grid;
  min-width: 208px;
  min-height: 34px;
  grid-template-columns: auto auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 0 14px;
  border: 1px solid rgba(216, 222, 217, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(24, 34, 28, 0.06);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.home-header-date::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(217, 105, 88, 0.1);
  content: "";
}

.home-header-date strong {
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 750;
}

.home-header-date span {
  color: var(--faint);
}

.home-profile {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.home-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-notice {
  position: relative;
}

.home-notice > i {
  position: absolute;
  top: -3px;
  right: -3px;
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--mono-font);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.home-main {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 118px;
}

body.home-empty .home-main {
  width: min(1080px, calc(100% - 48px));
  padding-top: 54px;
}

body.home-empty .home-intro {
  display: none;
}

.home-intro {
  position: relative;
  min-height: 238px;
  padding-right: 245px;
}

.home-intro::after {
  position: absolute;
  top: 7px;
  right: 34px;
  width: 156px;
  height: 156px;
  border: 1px solid #cfd3cb;
  border-radius: 50%;
  box-shadow: 24px 13px 0 -2px var(--paper), 24px 13px 0 -1px #d8dad5;
  content: "";
}

.home-intro::before {
  position: absolute;
  top: 66px;
  right: 60px;
  z-index: 1;
  color: var(--green);
  content: "一起";
  font-family: var(--display-font);
  font-size: 38px;
  font-weight: 700;
  transform: rotate(-7deg);
}

.home-intro h1 {
  max-width: 610px;
  margin-top: 13px;
  font-family: var(--display-font);
  font-size: 48px;
  line-height: 1.2;
}

.home-intro h1 em {
  color: var(--green);
  font-style: normal;
}

.home-intro > p {
  max-width: 530px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.home-create {
  margin-top: 24px;
}

.starter-lab {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
  min-height: calc(100vh - 190px);
  margin-top: 0;
  padding: 22px 0 20px;
  border-top: 0;
}

.starter-visual {
  position: relative;
  min-height: 520px;
}

.starter-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(24, 34, 28, 0.16);
}

.starter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.starter-photo.main {
  top: 48px;
  left: 16px;
  width: 330px;
  height: 390px;
}

.starter-photo.side {
  right: 8px;
  bottom: 34px;
  width: 190px;
  height: 250px;
  border: 8px solid var(--paper);
}

.starter-note {
  position: absolute;
  right: 58px;
  top: 20px;
  display: grid;
  width: 150px;
  min-height: 130px;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.starter-note small,
.starter-note span {
  color: var(--muted);
  font-size: 10px;
}

.starter-note strong {
  color: #4968f2;
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1;
}

.starter-bubble {
  position: absolute;
  left: 0;
  bottom: 42px;
  max-width: 260px;
  padding: 15px 18px;
  border-radius: 18px 18px 18px 4px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.35;
}

.starter-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 430px;
  padding-top: 20px;
}

.starter-copy h2 {
  font-family: var(--display-font);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
}

.starter-copy h2 em {
  color: #4968f2;
  font-style: normal;
}

.starter-copy p {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.starter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

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

.starter-scenario {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.starter-scenario::after {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 18px;
  content: "→";
}

.starter-scenario:hover,
.starter-scenario:focus-visible {
  border-color: #4968f2;
  background: #f8f9ff;
  transform: translateY(-2px);
}

.starter-scenario.primary {
  border-color: rgba(73, 104, 242, 0.3);
  background: #eef1ff;
}

.starter-scenario small {
  color: #4968f2;
  font-size: 10px;
  font-weight: 700;
}

.starter-scenario strong {
  max-width: 220px;
  font-family: var(--display-font);
  font-size: 18px;
  line-height: 1.25;
}

.starter-scenario span {
  color: var(--muted);
  font-size: 11px;
}

.starter-path {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.starter-path span {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.starter-path b {
  color: var(--coral);
  font-family: var(--mono-font);
  font-size: 10px;
}

.home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.home-section-heading > span {
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
}

.home-section-heading > small {
  color: var(--faint);
  font-size: 10px;
}

.attention-stream {
  margin-top: 38px;
}

.attention-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.attention-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 18px 18px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, padding-left 160ms ease;
}

.attention-item:hover,
.attention-item:focus-visible {
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.attention-item.is-primary {
  background: rgba(232, 235, 255, 0.58);
}

.attention-item.is-resolved {
  opacity: 0.64;
}

.home-avatar,
.person-photo {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
}

.home-avatar img,
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-avatar > i,
.person-photo > i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
}

.initial.lin {
  background: #f3dfd6;
  color: #9d4a3d;
}

.attention-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.attention-copy small {
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
}

.attention-item.is-primary .attention-copy small {
  color: var(--green-dark);
}

.attention-copy strong {
  font-family: var(--display-font);
  font-size: 18px;
  line-height: 1.35;
}

.attention-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.attention-action .icon {
  width: 15px;
  height: 15px;
}

.people-rail {
  margin-top: 58px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.person-chip {
  display: grid;
  min-height: 132px;
  justify-items: center;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.person-chip:last-child {
  border-right: 0;
}

.person-chip:hover,
.person-chip.active {
  background: var(--surface);
  color: var(--ink);
}

.person-chip.active {
  box-shadow: inset 0 -3px 0 var(--green);
}

.person-chip strong {
  font-size: 12px;
}

.person-chip small {
  color: var(--faint);
  font-size: 9px;
}

.person-chip .person-photo {
  width: 48px;
  height: 48px;
  margin-bottom: 3px;
}

.all-people {
  display: flex;
  height: 51px;
  align-items: center;
  padding-left: 17px;
}

.all-people img,
.all-people b {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-left: -17px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.all-people b {
  background: #f3dfd6;
  color: #9d4a3d;
  font-family: var(--display-font);
  font-size: 14px;
}

.home-plans {
  margin-top: 58px;
}

.home-plan-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.home-plan-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 116px 18px;
  gap: 17px;
  align-items: center;
  min-height: 112px;
  padding: 15px 4px 15px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, padding-left 160ms ease;
}

.home-plan-row:hover,
.home-plan-row:focus-visible {
  padding-left: 10px;
  padding-right: 0;
  background: rgba(255, 255, 255, 0.68);
}

.plan-person {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.plan-person .home-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 15px;
}

.plan-person > small {
  color: var(--faint);
  font-size: 9px;
}

.plan-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.plan-main small {
  color: var(--faint);
  font-size: 9px;
}

.plan-main strong {
  font-family: var(--display-font);
  font-size: 18px;
  line-height: 1.35;
}

.plan-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-progress {
  position: relative;
  display: grid;
  gap: 7px;
}

.plan-progress::before {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}

.plan-progress > i {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--progress);
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}

.plan-progress.warning > i {
  background: var(--coral);
}

.plan-progress small {
  color: var(--faint);
  font-family: var(--mono-font);
  font-size: 9px;
  text-align: right;
}

.home-plan-row > .icon {
  color: var(--faint);
}

.home-plan-row[hidden] {
  display: none;
}

.filtered-empty {
  padding: 40px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.filtered-empty strong {
  font-family: var(--display-font);
  font-size: 18px;
}

.filtered-empty p {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.home-action-dialog {
  width: min(700px, calc(100vw - 32px));
}

.action-person {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.action-person p {
  display: grid;
}

.action-person strong {
  font-size: 12px;
}

.action-person span {
  color: var(--muted);
  font-size: 10px;
}

.nav-notice-dot {
  position: absolute;
  top: 8px;
  right: calc(50% - 15px);
  width: 6px;
  height: 6px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--coral);
}

.home-bottom-nav button,
[data-view="goal"].consumer-bottom-nav button {
  position: relative;
  background: transparent;
  color: var(--faint);
}

.home-bottom-nav [data-open-create],
[data-view="goal"].consumer-bottom-nav [data-open-create] {
  background: var(--ink);
  color: #fff;
}

.direction-tag,
.goal-direction-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.direction-tag {
  min-height: 18px;
  margin-right: 7px;
  padding: 0 6px;
  font-size: 8px;
}

.direction-tag.sent,
.goal-direction-badge.sent {
  background: var(--green-soft);
  color: var(--green-dark);
}

.direction-tag.received,
.goal-direction-badge.received {
  background: var(--yellow-soft);
  color: #78601e;
}

.goal-direction-badge {
  min-height: 24px;
  padding: 0 8px;
  font-size: 9px;
}

.goal-direction-badge + .consumer-kicker {
  margin-left: 8px;
}

.attention-copy small,
.plan-main small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
}

.goal-header-action {
  display: inline-flex;
  width: auto;
  min-width: 92px;
  height: 38px;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.goal-header-action .icon {
  width: 15px;
  height: 15px;
}

.advisor-context {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  padding: 14px;
  background: var(--yellow-soft);
}

.advisor-context p {
  color: #675c39;
  font-size: 10px;
}

.nav-notice-dot.resolved {
  display: none;
}

@media (max-width: 700px) {
  .home-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .home-header-date {
    display: inline-grid;
    min-width: 0;
    min-height: 30px;
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 0 9px;
    font-size: 9px;
  }

  .home-header-date::before,
  .home-header-date [data-date-year] {
    display: none;
  }

  .home-header-date strong {
    font-size: 10px;
  }

  .home-main {
    width: calc(100% - 36px);
    padding: 37px 0 112px;
  }

  body.home-empty .home-main {
    width: calc(100% - 28px);
    padding-top: 26px;
  }

  .home-intro {
    min-height: 0;
    padding-right: 0;
  }

  .home-intro::before,
  .home-intro::after {
    display: none;
  }

  .home-intro h1 {
    margin-top: 10px;
    font-size: 35px;
  }

  .home-intro > p {
    font-size: 11px;
  }

  .home-create {
    width: 100%;
    margin-top: 20px;
  }

  .starter-lab {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .starter-visual {
    min-height: 330px;
  }

  .starter-photo.main {
    top: 14px;
    left: 0;
    width: 68%;
    height: 270px;
  }

  .starter-photo.side {
    right: 0;
    bottom: 10px;
    width: 38%;
    height: 170px;
    border-width: 6px;
  }

  .starter-note {
    top: 0;
    right: 4px;
    width: 112px;
    min-height: 98px;
    padding: 14px;
  }

  .starter-note strong {
    font-size: 22px;
  }

  .starter-bubble {
    left: 12px;
    bottom: 14px;
    max-width: 210px;
    font-size: 18px;
  }

  .starter-copy {
    min-height: 0;
    padding-top: 0;
  }

  .starter-copy h2 {
    font-size: 39px;
  }

  .starter-actions {
    display: grid;
  }

  .starter-board {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
  }

  .starter-scenario {
    min-height: 96px;
    padding: 15px 16px;
  }

  .starter-scenario strong {
    max-width: 280px;
    font-size: 18px;
  }

  .starter-path {
    grid-template-columns: 1fr 1fr;
    margin-top: 2px;
  }

  .starter-path span {
    min-height: 82px;
    padding: 14px;
  }

  .attention-stream {
    margin-top: 42px;
  }

  .attention-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 142px;
    padding: 17px 12px;
  }

  .attention-copy strong {
    font-size: 16px;
  }

  .attention-copy em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.55;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .attention-action {
    grid-column: 2;
    margin-top: 3px;
  }

  .people-rail,
  .home-plans {
    margin-top: 46px;
  }

  .people-list {
    grid-template-columns: repeat(4, 92px);
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .people-list::-webkit-scrollbar {
    display: none;
  }

  .person-chip {
    min-height: 118px;
  }

  .home-plan-row {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    gap: 11px;
    min-height: 106px;
  }

  .plan-person .home-avatar {
    width: 34px;
    height: 34px;
  }

  .plan-main strong {
    font-size: 16px;
  }

  .plan-progress {
    grid-column: 2;
    width: 100%;
  }

  .plan-progress small {
    display: none;
  }

  .home-plan-row > .icon {
    grid-column: 3;
    grid-row: 1;
  }

  .home-action-dialog {
    width: 100vw;
    max-width: none;
  }

  .home-action-dialog .dialog-frame {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .goal-header-action {
    min-width: 78px;
    height: 34px;
    padding: 0 8px;
    font-size: 9px;
  }

  .goal-header-action .icon {
    width: 14px;
    height: 14px;
  }

  .goal-direction-badge {
    min-height: 21px;
    padding: 0 6px;
    font-size: 8px;
  }

  .goal-direction-badge + .consumer-kicker {
    margin-left: 5px;
  }

  .advisor-dialog {
    width: 100vw;
    max-width: none;
  }

  .advisor-dialog .dialog-frame {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
}

/* Registration is a real product moment, not a marketing interstitial. */
.auth-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #f4f6fb;
  color: #202127;
}

body[data-current-view="auth"] {
  padding-bottom: 0;
  background: #f4f6fb;
}

.auth-header {
  display: flex;
  width: min(1160px, calc(100% - 56px));
  height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid #e0e3eb;
}

.auth-brand {
  color: #202127;
}

.auth-brand .brand-mark {
  background: #4b61e8;
  color: #fff;
}

.auth-header > span {
  color: #777b87;
  font-size: 11px;
}

.auth-header-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-header-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff705d;
  box-shadow: 0 0 0 4px rgba(255, 112, 93, 0.12);
}

.auth-main {
  display: grid;
  width: min(1160px, calc(100% - 56px));
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
  margin: 0 auto;
  padding: 46px 0 62px;
}

.auth-stage {
  position: relative;
  min-width: 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #ffe27c;
  color: #554612;
  font-size: 11px;
  font-weight: 700;
}

.auth-stage h1 {
  max-width: 720px;
  margin-top: 18px;
  font-family: var(--body-font);
  font-size: 54px;
  font-weight: 750;
  line-height: 1.2;
}

.auth-stage h1 em {
  color: #4b61e8;
  font-style: normal;
}

.auth-lead {
  margin-top: 18px;
  color: #656a76;
  font-size: 15px;
}

.auth-invite-card {
  display: grid;
  max-width: 520px;
  gap: 5px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d7ddff;
  border-left: 4px solid #4b61e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(45, 52, 83, 0.1);
}

.auth-invite-card > span {
  color: #4b61e8;
  font-size: 10px;
  font-weight: 750;
}

.auth-invite-card strong {
  font-size: 15px;
}

.auth-invite-card p {
  color: #656a76;
  font-size: 11px;
  line-height: 1.65;
}

.auth-story {
  position: relative;
  display: grid;
  width: min(700px, 100%);
  height: 200px;
  grid-template-columns: 116px minmax(160px, 1fr) 116px;
  align-items: center;
  margin-top: 34px;
}

.auth-explainer {
  display: grid;
  width: min(700px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.auth-explainer > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 13px 12px;
  border: 1px solid #e1e5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-explainer b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #202127;
  color: #fff;
  font-family: var(--mono-font);
  font-size: 9px;
}

.auth-explainer span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-explainer strong {
  font-size: 11px;
}

.auth-explainer small {
  color: #777c88;
  font-size: 9px;
  line-height: 1.55;
}

.auth-person {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.auth-person img {
  width: 108px;
  height: 108px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(39, 46, 79, 0.14), 0 0 0 1px #dfe3ec;
}

.auth-person > span {
  display: grid;
  justify-items: center;
  line-height: 1.35;
}

.auth-person strong {
  font-size: 12px;
}

.auth-person small {
  color: #858a96;
  font-size: 9px;
}

.auth-shared-plan {
  position: relative;
  display: grid;
  min-width: 0;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 0 12px;
  text-align: center;
}

.auth-shared-plan > strong {
  font-size: 14px;
}

.auth-shared-plan > small {
  color: #777c88;
  font-size: 9px;
}

.auth-plan-line {
  position: relative;
  display: grid;
  width: 100%;
  height: 14px;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
}

.auth-plan-line::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4b61e8 0 45%, #dfe3ec 45% 100%);
  content: "";
}

.auth-plan-line i {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 3px solid #f4f6fb;
  border-radius: 50%;
  background: #c7ccd7;
  box-shadow: 0 0 0 1px #c7ccd7;
}

.auth-plan-line i:nth-child(-n + 2) {
  background: #4b61e8;
  box-shadow: 0 0 0 1px #4b61e8;
}

.auth-today-note {
  position: absolute;
  right: 74px;
  bottom: -4px;
  z-index: 3;
  display: grid;
  width: 176px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 12px 14px;
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(45, 52, 83, 0.12);
  transform: rotate(2deg);
}

.auth-today-note small {
  grid-column: 1 / -1;
  color: #8a8e99;
  font-size: 8px;
}

.auth-today-note strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-today-note i {
  align-self: center;
  color: #ff705d;
  font-size: 8px;
  font-style: normal;
}

.auth-panel {
  position: relative;
  min-height: 454px;
  padding: 32px 30px 28px;
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(44, 51, 84, 0.13);
}

.auth-panel-heading > span {
  color: #4b61e8;
  font-size: 10px;
  font-weight: 700;
}

.auth-panel-heading h2 {
  margin-top: 7px;
  font-family: var(--body-font);
  font-size: 26px;
  font-weight: 750;
  line-height: 1.3;
}

.auth-panel-heading p {
  margin-top: 8px;
  color: #777c88;
  font-size: 11px;
}

.auth-step {
  display: none;
  margin-top: 38px;
}

.auth-step.active {
  display: block;
  animation: auth-step-in 220ms ease-out both;
}

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

.auth-field > span {
  font-size: 11px;
  font-weight: 700;
}

.auth-field > small {
  min-height: 16px;
  color: #8a8f9b;
  font-size: 9px;
}

.auth-field.has-error > small {
  color: var(--coral);
}

.phone-input {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  height: 54px;
  align-items: center;
  border: 1px solid #dde1ea;
  border-radius: 5px;
  background: #f8f9fc;
}

.phone-input:focus-within {
  border-color: #4b61e8;
  box-shadow: 0 0 0 3px rgba(75, 97, 232, 0.1);
}

.phone-input b {
  display: grid;
  height: 28px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
}

.phone-input input,
.code-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
}

.phone-input input {
  padding: 0 13px;
  font-family: var(--mono-font);
  font-size: 16px;
}

.auth-submit {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 17px;
  border-radius: 5px;
  background: #4b61e8;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.auth-submit:hover {
  background: #3f53cf;
}

.auth-sent {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 0 12px;
  border-left: 3px solid #4b61e8;
  background: #eef0ff;
  color: #3346ba;
  font-size: 10px;
}

.auth-sent .icon {
  width: 15px;
  height: 15px;
}

.code-input {
  height: 54px;
  padding: 0 14px;
  border: 1px solid #dde1ea;
  border-radius: 5px;
  background: #f8f9fc;
  font-family: var(--mono-font);
  font-size: 22px;
}

.code-input:focus {
  border-color: #4b61e8;
}

.auth-back {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.auth-consent {
  position: absolute;
  right: 32px;
  bottom: 24px;
  left: 32px;
  color: var(--faint);
  font-size: 8px;
  text-align: center;
}

.phone-input.compact {
  height: 42px;
}

.phone-input.compact input {
  font-size: 13px;
}

.invite-phone-field {
  margin-top: 2px;
}

.field.has-error .phone-input {
  border-color: var(--coral);
}

.field.has-error > small {
  color: var(--coral);
}

.invite-notify {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: -3px 0 18px;
  padding: 12px 13px;
  background: var(--green-soft);
  cursor: pointer;
}

.invite-notify input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.invite-notify span {
  display: grid;
}

.invite-notify strong {
  font-size: 11px;
}

.invite-notify small {
  color: var(--muted);
  font-size: 9px;
}

.invite-footer {
  display: grid;
  grid-template-columns: auto 1fr 1.25fr;
}

.invite-receipt {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.invite-receipt > span {
  display: grid;
}

.invite-receipt strong {
  font-size: 11px;
}

.invite-receipt small {
  font-size: 9px;
}

.invite-receipt.sent {
  border-left-color: var(--coral);
  background: var(--coral-soft);
  color: #8f4438;
}

.account-person {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.avatar-uploader {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  cursor: pointer;
}

.account-person img {
  width: 54px;
  height: 54px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(24, 34, 28, 0.12);
}

.avatar-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-uploader > span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.avatar-uploader .icon {
  width: 12px;
  height: 12px;
}

.account-person > span {
  display: grid;
}

.account-person strong {
  font-size: 13px;
}

.account-person small {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 10px;
}

.account-person > i {
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.account-name-field {
  margin-top: 20px;
}

.account-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.account-note p {
  display: grid;
}

.account-note strong {
  color: var(--ink);
  font-size: 11px;
}

.account-note span {
  font-size: 9px;
}

@keyframes auth-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .auth-shell {
    overflow: auto;
  }

  .auth-header {
    width: calc(100% - 32px);
    height: 64px;
  }

  .auth-header > span {
    font-size: 9px;
  }

  .auth-main {
    width: calc(100% - 32px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 28px 0 28px;
  }

  .auth-stage h1 {
    margin-top: 13px;
    font-size: 38px;
    line-height: 1.22;
  }

  .auth-lead {
    margin-top: 13px;
    font-size: 13px;
  }

  .auth-invite-card {
    max-width: none;
    margin-top: 16px;
  }

  .auth-story {
    width: 100%;
    height: 160px;
    grid-template-columns: 72px minmax(90px, 1fr) 72px;
    margin-top: 24px;
  }

  .auth-person img {
    width: 70px;
    height: 70px;
    border-width: 4px;
  }

  .auth-person strong {
    font-size: 10px;
  }

  .auth-person small {
    font-size: 8px;
  }

  .auth-shared-plan {
    gap: 9px;
    padding: 0 8px;
  }

  .auth-shared-plan > strong {
    font-size: 11px;
    line-height: 1.4;
  }

  .auth-shared-plan > small {
    max-width: 150px;
    line-height: 1.4;
  }

  .auth-today-note {
    right: 50px;
    bottom: -20px;
    width: 158px;
    padding: 10px 12px;
  }

  .auth-explainer {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .auth-panel {
    min-height: 424px;
    padding: 26px 22px 58px;
  }

  .auth-panel-heading h2 {
    font-size: 23px;
  }

  .auth-step {
    margin-top: 28px;
  }

  .auth-consent {
    right: 22px;
    bottom: 18px;
    left: 22px;
  }

  .invite-footer {
    grid-template-columns: 42px 1fr 1.15fr;
  }

  .invite-footer #back-to-form {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .invite-footer #back-to-form .icon {
    margin: 0;
  }

  .invite-footer .button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .strategy-progress {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 16px;
    text-align: center;
  }

  .strategy-meter {
    width: 100%;
  }

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

  .account-dialog {
    width: 100vw;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .auth-header-note {
    max-width: 132px;
    line-height: 1.35;
    text-align: right;
  }

  .auth-stage h1 {
    font-size: 35px;
  }

  .auth-story {
    grid-template-columns: 66px minmax(86px, 1fr) 66px;
  }

  .auth-person img {
    width: 64px;
    height: 64px;
  }

  .auth-shared-plan > small {
    font-size: 8px;
  }

  .auth-today-note {
    right: 42px;
  }
}
