.fam-with-goals {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.fam-with-goals > .card { flex: 1; min-width: 0; }
.goal-lib {
  width: 380px;
  flex: none;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 18px;
  box-shadow: 0 8px 20px rgba(40, 48, 48, 0.06);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.goal-lib-head h2 {
  margin: 0;
  padding-left: 8px;
  border-left: 4px solid #26c2c9;
  font-size: 16px;
  color: #1c2422;
}
.goal-lib-head p { margin: 6px 0 0; color: #6d7874; font-size: 12px; }
.goal-kinds, .goal-stages, .goal-chips { display: flex; gap: 6px; margin-top: 10px; }
.goal-chips { overflow-x: auto; padding-bottom: 4px; }
.goal-kinds button, .goal-stages button, .goal-chips button {
  border: 0;
  border-radius: 999px;
  background: #f3f6f5;
  color: #5c6662;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.goal-kinds .is-on, .goal-stages .is-on, .goal-chips .is-on { background: #26c2c9; color: #fff; }
.goal-q {
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
  border: 1px solid #d7e3e1;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: #1c2422;
  background: #fff;
}
.goal-list { margin-top: 10px; }
.goal-card {
  margin-top: 8px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: #f7fbfa;
}
.goal-card-top { display: flex; align-items: center; gap: 8px; }
.goal-card-top b { color: #128f8c; font-size: 13px; }
.goal-card-top span { flex: 1; min-width: 0; color: #5e6664; font-size: 12px; }
.goal-card-top button {
  border: 0;
  border-radius: 999px;
  background: #fff4e4;
  color: #e09010;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
}
.goal-card p { margin: 6px 0 0; color: #1c2422; font-size: 13px; line-height: 1.5; }
.goal-scene { color: #6d7874 !important; font-size: 12px !important; }
.goal-empty { color: #6d7874; font-size: 13px; }
@media (max-width: 980px) {
  .fam-with-goals { flex-direction: column; }
  .goal-lib { width: 100%; position: static; max-height: 70vh; }
}
.family-phone {
  width: min(460px, 100%);
  margin: 0 auto 32px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.fam-note { color: #6d7874; font-size: 14px; line-height: 1.6; }
.fam-list { display: flex; flex-direction: column; gap: 12px; }
.fam-card, .fam-block {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(40, 48, 48, 0.06);
}
.fam-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; border: 0; width: 100%; text-align: left; }
.fam-card strong, .fam-title { display: block; font-size: 16px; color: #1c2422; }
.fam-sub { display: block; margin-top: 4px; font-size: 12px; color: #6d7874; }
.fam-head {
  margin: -8px -8px 12px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #26c2c9;
  color: #fff;
}
.fam-head h1 { margin: 0; font-size: 22px; line-height: 1.35; }
.fam-head p { margin: 6px 0 0; font-size: 13px; opacity: 0.92; }
.fam-back, .fam-chip, .fam-mode, .fam-day {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.fam-tabs, .fam-days, .fam-modes, .fam-picks { display: flex; gap: 8px; margin-top: 12px; }
.fam-tabs button, .fam-days button, .fam-modes button, .fam-picks button {
  border: 0;
  border-radius: 999px;
  background: #f3f6f5;
  color: #5c6662;
  padding: 8px 12px;
  font-weight: 700;
}
.fam-tabs .is-on, .fam-days .is-on, .fam-modes .is-on, .fam-picks .is-on { background: #26c2c9; color: #fff; }
.fam-block { margin-top: 12px; padding-bottom: 8px; }
.fam-h {
  margin: 0;
  padding-left: 8px;
  border-left: 4px solid #26c2c9;
  font-size: 16px;
  color: #1c2422;
}
.fam-lead {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4fbf9;
  color: #1c2422;
  font-size: 13px;
  line-height: 1.5;
}
.fam-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 14px; }
.fam-k { color: #8a948f; font-size: 12px; }
.fam-n { font-size: 20px; font-weight: 700; color: #1c2422; }
.fam-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.fam-hole {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #3b8fd9;
  font-weight: 700;
}
.fam-split { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fam-grid { width: 168px; display: flex; flex-wrap: wrap; padding: 6px; border-radius: 12px; background: #f4fbf9; }
.fam-cell { width: 25%; padding: 3px; box-sizing: border-box; }
.fam-orb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #fff;
  border: 1px solid #e3eeeb;
}
.fam-orb.p { background: #3b8fd9; border: 0; }
.fam-orb.pf { background: #2fbe78; border: 0; }
.fam-orb.f { background: #f0a04a; border: 0; }
.fam-orb.na { background: #5e6664; border: 0; }
.fam-caption { margin-top: 6px; text-align: center; font-size: 11px; color: #b7bfbc; }
.fam-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 11px; color: #5c6662; }
.fam-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.fam-legend i.p { background: #3b8fd9; }
.fam-legend i.pf { background: #2fbe78; }
.fam-legend i.f { background: #f0a04a; }
.fam-legend i.na { background: #5e6664; }
.num-blue { color: #3b8fd9; font-weight: 700; }
.num-green { color: #2fbe78; font-weight: 700; }
.num-teal { color: #1a9aa1; font-weight: 700; }
.num-gray { color: #5e6664; font-weight: 700; }
.fam-act { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fam-act:last-child { margin-bottom: 8px; }
.fam-time { width: 48px; color: #8a948f; font-size: 12px; }
.fam-mark { margin-left: auto; font-size: 12px; font-weight: 700; }
.plot { display: flex; margin-top: 12px; height: 400px; }
.plot-side { width: 36px; }
.plot-lab { height: 80px; margin-bottom: 16px; font-size: 12px; font-weight: 700; line-height: 80px; }
.plot-lab.p { color: #3b8fd9; }
.plot-lab.pf { color: #1f9d62; }
.plot-lab.f { color: #d48912; }
.plot-lab.na { color: #5e6664; margin-bottom: 0; }
.plot-main { position: relative; flex: 1; height: 400px; }
.lane { position: absolute; left: 0; right: 0; height: 80px; border-radius: 10px; }
.lane.p { top: 0; background: #e7f1fb; box-shadow: inset 4px 0 0 #3b8fd9; }
.lane.pf { top: 96px; background: #e8f8ef; box-shadow: inset 4px 0 0 #2fbe78; }
.lane.f { top: 192px; background: #fff4e4; box-shadow: inset 4px 0 0 #f5a623; }
.lane.na { top: 288px; background: #eef0ef; box-shadow: inset 4px 0 0 #5e6664; }
.plot-col { position: absolute; top: 0; width: 14.28%; height: 368px; }
.plot-num {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  line-height: 11px;
  text-align: center;
  transform: translate(-50%, -50%);
}
.plot-day { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px; color: #6d7874; }
.tag { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: #e5f7f8; color: #1a9aa1; }
.tag.scene, .tag.slip, .tag.slow, .tag.both { background: #fff4e4; color: #e09010; }
.tag.forget, .tag.steady, .tag.fast { background: #e7f1fb; color: #3b8fd9; }
.tag.hold { background: #e8f8ef; color: #1f9d62; }
.meter { position: relative; height: 8px; margin-top: 6px; border-radius: 999px; background: #e7f6f3; overflow: hidden; }
.meter i { position: absolute; top: 0; height: 100%; }
.meter .na { background: #5e6664; }
.meter .blank { background: #f5a623; }
.meter .pf { left: 0; background: #2fbe78; }
.fam-sheet { margin-top: 12px; }
.ifsp-card { margin: 12px 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(18, 90, 86, 0.06); }
.ifsp-profile { margin-top: -8px; }
.ifsp-profile p { margin: 10px 0 0; color: #5e6664; font-size: 13px; }
.ifsp-name { display: block; font-size: 22px; }
.ifsp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ifsp-pills i { padding: 3px 10px; border-radius: 999px; background: #e7f7f4; color: #1a9aa1; font-style: normal; font-size: 12px; }
.ifsp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ifsp-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-height: 92px; margin: 0; padding: 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(18, 90, 86, 0.06); text-align: left; cursor: pointer; }
.ifsp-tile--teal { background: #e7f8f6; }
.ifsp-tile--warm { background: #fff8ee; }
.ifsp-tile strong { font-size: 15px; color: #1c2422; }
.ifsp-tile span, .ifsp-suggest em { color: #6d7874; font-size: 12px; line-height: 1.5; font-style: normal; }
.ifsp-tile--wide { margin-top: 12px; }
.ifsp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ifsp-head h2, .ifsp-card h2 { margin: 0; font-size: 16px; }
.ifsp-head span { padding: 3px 8px; border-radius: 999px; background: #fff4e4; color: #e09010; font-size: 12px; white-space: nowrap; }
.ifsp-suggest { display: flex; gap: 10px; width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 14px; background: #f4fbf9; text-align: left; cursor: pointer; }
.ifsp-suggest b { display: block; color: #e09010; font-size: 12px; }
.ifsp-suggest strong { display: block; margin-top: 2px; color: #1a9aa1; font-size: 15px; }
.ifsp-no { width: 24px; height: 24px; border-radius: 50%; background: #26c2c9; color: #fff; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; flex: none; }
.ifsp-back { margin: 4px 0 0; padding: 0; border: 0; background: transparent; color: #1a9aa1; font-size: 13px; font-weight: 700; cursor: pointer; }
.ifsp-title { margin: 8px 0; font-size: 18px; }
.ifsp-ability { margin: 8px 0 0; color: #e09010; font-size: 13px; }
.ifsp-item { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.ifsp-item strong { flex: 1; font-size: 14px; }
.ifsp-item em, .ifsp-item span { color: #6d7874; font-size: 12px; font-style: normal; }
.ifsp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ifsp-tag { padding: 4px 8px; border-radius: 999px; background: #e7f7f4; color: #1a9aa1; font-size: 12px; }
.mark-P { color: #3b8fd9; }
.mark-PF { color: #1f9d62; }
.mark-F { color: #d48912; }
.mark-NA { color: #5e6664; }
.ifsp-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.ifsp-bar span { width: 92px; color: #5e6664; }
.ifsp-bar i { height: 8px; border-radius: 99px; background: #26c2c9; }
.ifsp-bar b { width: 28px; color: #1a9aa1; }
.review-page { width: 100%; color: #1c2422; font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif; }
.review-top { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 16px; }
.review-who { flex: 1; }
.review-who h1 { margin: 0; font-size: 28px; line-height: 1.3; }
.review-who p { margin: 4px 0 0; color: #5e6664; font-size: 13px; }
.review-back, .review-ops button, .review-add button, .review-stages button, .review-dims button {
  border: 0;
  border-radius: 999px;
  background: #e7f7f4;
  color: #1a9aa1;
  font-weight: 700;
}
.review-back { padding: 8px 14px; }
.review-page .fam-tabs button { background: #fff; color: #1c2422; }
.review-page .fam-tabs button.is-on { background: #26c2c9; color: #fff; }
.review-note { margin: 0 0 12px; color: #1a9aa1; font-size: 13px; }
.review-board { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr); gap: 18px; align-items: start; }
.review-card { padding: 18px 18px 22px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(18, 90, 86, 0.06); }
.review-card h2 { margin: 4px 0 10px; font-size: 20px; }
.review-card h3 { margin: 18px 0 8px; font-size: 15px; }
.review-kicker { color: #1a9aa1; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.review-quiet { margin: 0 0 12px; color: #6d7874; font-size: 13px; line-height: 1.6; }
.review-banner { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; padding: 14px 16px; border-radius: 14px; color: #fff; }
.review-banner span { font-size: 13px; line-height: 1.5; }
.review-stages, .review-dims { display: flex; flex-wrap: wrap; gap: 8px; }
.review-stages button, .review-dims button, .review-ops button, .review-add button { padding: 6px 10px; font-size: 12px; }
.review-stages button.is-on, .review-dims button.is-on { background: #26c2c9; color: #fff; }
.review-plot { display: flex; gap: 8px; height: 220px; margin-top: 14px; padding: 12px; border-radius: 14px; background: #f7fbfa; }
.review-axis { writing-mode: vertical-rl; color: #6d7874; font-size: 12px; }
.review-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.review-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.review-col i { display: block; width: 70%; max-width: 22px; border-radius: 6px 6px 0 0; }
.review-col b { margin-bottom: 4px; color: #1a9aa1; font-size: 11px; }
.review-col span { height: 48px; margin-top: 6px; color: #5e6664; font-size: 11px; line-height: 1.25; text-align: center; }
.review-sum { margin: 8px 0 0; font-size: 14px; }
.review-answers { max-height: 360px; margin-top: 10px; overflow: auto; }
.review-answer { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 13px; }
.review-answer em { flex: none; width: 64px; font-style: normal; font-weight: 700; }
.review-side { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; }
.review-sug { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 10px; margin-top: 12px; padding: 12px; border-radius: 14px; background: #f4fbf9; }
.review-sug b { color: #e09010; font-size: 12px; }
.review-sug strong { display: block; margin-top: 2px; color: #1a9aa1; }
.review-sug em, .review-sug span { display: block; margin-top: 4px; color: #6d7874; font-size: 12px; font-style: normal; line-height: 1.5; }
.review-no { width: 24px; height: 24px; border-radius: 50%; background: #26c2c9; color: #fff; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; }
.review-ops, .review-sug label { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-sug select, .review-add select { flex: 1; min-width: 0; height: 32px; border: 1px solid #d7e6e3; border-radius: 8px; background: #fff; }
.review-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.review-add span { width: 42%; color: #5e6664; font-size: 12px; }
@media (max-width: 900px) {
  .review-board { grid-template-columns: 1fr; }
  .review-side { position: static; max-height: none; }
  .review-top { flex-wrap: wrap; }
}
