:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #999999;
  --muted-dark: #6f737a;
  --line: #eeeeee;
  --line-strong: #e2e4e7;
  --blue: #7ba5d4;
  --blue-deep: #5f8cbd;
  --blue-soft: #eef4fa;
  --blue-faint: #f7faff;
  --navy: #22335a;
  --green-soft: #eef7f2;
  --green-text: #5f896f;
  --shadow: 0 1px 2px rgba(30, 41, 59, 0.035);
  --radius-card: 2px;
  --radius-control: 10px;
  --sidebar-width: 180px;
  --content-max: 1460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(123, 165, 212, 0.55);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1800px;
  margin: 0 auto;
  background: var(--bg);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 16px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin: 0 10px 44px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 8px 7px;
  background: var(--blue);
  border-radius: 9px;
}
.brand-mark span { display: block; width: 4px; background: #fff; border-radius: 4px; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .85; }
.brand-name { font-size: 24px; font-weight: 650; letter-spacing: .02em; }
.side-nav { display: grid; gap: 6px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  color: var(--muted-dark);
  background: transparent;
  border-radius: var(--radius-control);
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 3px;
  height: 22px;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}
.nav-item:hover { color: var(--text); background: #f7f8fa; }
.nav-item.is-active { color: #315d8c; background: var(--blue-soft); font-weight: 600; }
.nav-item.is-active::before { opacity: 1; }
.nav-item svg, .icon-button svg, .mobile-nav svg, .section-heading svg, .list-row-tail svg, .text-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
}
.mini-avatar, .avatar-button, .profile-avatar {
  display: grid;
  place-items: center;
  color: #436b96;
  background: #eaf2fa;
  font-weight: 650;
}
.mini-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; }
.sidebar-foot div:last-child { display: grid; min-width: 0; }
.sidebar-foot strong { font-size: 13px; font-weight: 600; }
.sidebar-foot span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.main-content { min-width: 0; padding: 42px clamp(32px, 4.5vw, 72px) 80px; }
.page { width: 100%; max-width: var(--content-max); margin: 0 auto; animation: page-in 180ms ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.brand-kicker, .section-eyebrow {
  margin: 0 0 4px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-heading h1 { margin: 0; font-size: clamp(34px, 3.2vw, 48px); font-weight: 620; letter-spacing: -.035em; line-height: 1.15; }
.page-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.date-label { margin-right: 5px; color: var(--muted); font-size: 12px; }
.avatar-button, .icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 160ms ease, border-color 160ms ease;
}
.icon-button:hover, .avatar-button:hover { background: #f5f6f7; border-color: var(--line-strong); }
.icon-button.small { width: 30px; height: 30px; border: 0; }
.avatar-button { font-size: 13px; font-weight: 650; }
.intent-strip, .week-overview, .pillar-card, .energy-panel, .goal-card, .profile-card, .list-section, .settings-section, .review-question, .review-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.intent-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 18px 22px; }
.intent-strip p { margin: 0; font-weight: 550; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; color: var(--blue-deep); background: none; white-space: nowrap; }
.text-button:hover { color: #3f719f; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 22px; align-items: stretch; margin-bottom: 36px; }
.pillar-area { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-heading.compact { align-items: flex-start; }
.section-heading h2 { margin: 0; font-size: 21px; font-weight: 620; letter-spacing: -.015em; }
.quiet-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pillar-stack { display: grid; gap: 12px; }
.pillar-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  min-height: 132px;
  padding: 21px 22px;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease;
}
.pillar-card::after { content: ""; position: absolute; inset: auto 22px 0; height: 2px; background: var(--blue); opacity: 0; transition: opacity 160ms ease; }
.pillar-card.is-complete { background: #fcfdff; border-color: #e5edf6; }
.pillar-card.is-complete::after { opacity: 1; }
.check-circle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1.5px solid #b9c0c8;
  border-radius: 50%;
  transition: border-color 160ms ease, background 160ms ease;
}
.check-circle span {
  width: 12px;
  height: 7px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.8);
  transition: opacity 160ms ease, transform 160ms ease;
}
.check-circle:hover { border-color: var(--blue-deep); }
.check-circle[aria-pressed="true"], .task-row.is-done .task-check { background: var(--blue); border-color: var(--blue); }
.check-circle[aria-pressed="true"] span, .task-row.is-done .task-check span { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.pillar-body { min-width: 0; }
.pillar-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pillar-title-line h3 { margin: 0; font-size: 16px; font-weight: 600; }
.pillar-duration { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.pillar-status { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.pillar-card.is-complete .pillar-status { color: var(--blue-deep); }
.metric-line { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted-dark); font-size: 12px; }
.metric-line span + span { position: relative; }
.metric-line span + span::before { content: "·"; position: absolute; left: -9px; color: #c7c9cc; }
.pillar-why { grid-column: 2; margin-top: 12px; padding-top: 11px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.energy-panel { display: flex; flex-direction: column; min-height: 276px; padding: 24px; }
.pool-chip { padding: 5px 9px; color: var(--blue-deep); background: var(--blue-faint); border: 1px solid #e4eef8; border-radius: 999px; font-size: 11px; white-space: nowrap; }.energy-number { display: flex; align-items: baseline; gap: 8px; margin: 11px 0 12px; }
.energy-number strong { font-size: 46px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.energy-number span { color: var(--muted); }
.progress-track { width: 100%; height: 5px; overflow: hidden; background: #edf0f3; border-radius: 999px; }
.progress-track.large { height: 7px; }
.progress-track > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.energy-hint { margin: 14px 0 24px; color: var(--muted); font-size: 11px; }
.energy-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.energy-facts div { display: grid; gap: 2px; }
.energy-facts span { color: var(--muted); font-size: 11px; }
.energy-facts strong { font-size: 13px; font-weight: 600; }
.task-area { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.task-list { border-top: 1px solid var(--line); }
.task-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(80px, auto) 52px; align-items: center; gap: 10px; min-height: 61px; padding: 10px 2px; border-bottom: 1px solid var(--line); transition: opacity 160ms ease; }
.task-row.is-done { opacity: .56; }
.task-row.is-done .task-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.task-check { width: 21px; height: 21px; border-width: 1.3px; }
.task-title { min-width: 0; overflow: hidden; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { color: var(--muted); font-size: 12px; }
.point-badge { justify-self: end; min-width: 45px; padding: 3px 8px; color: #4f7aa8; background: var(--blue-faint); border: 1px solid #e8f0f8; border-radius: 999px; font-size: 11px; text-align: center; white-space: nowrap; }
.point-badge.muted { color: var(--muted); background: #f7f7f7; border-color: var(--line); }
.add-task-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 9px 15px; color: var(--blue-deep); background: transparent; border: 1px solid #dbe8f4; border-radius: 999px; }
.add-task-button:hover { background: var(--blue-faint); }
.add-task-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.week-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 50px; align-items: center; margin-bottom: 34px; padding: 28px 30px; }
.intent-copy h2 { margin: 2px 0 7px; font-size: clamp(20px, 2vw, 27px); font-weight: 570; letter-spacing: -.025em; }
.intent-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.week-energy { display: grid; gap: 12px; }
.week-energy-line, .week-energy-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.week-energy-line span, .week-energy-meta { color: var(--muted); font-size: 12px; }
.week-energy-line strong { font-size: 14px; font-weight: 600; }
.week-goals .section-heading { margin-bottom: 18px; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.goal-card { display: flex; flex-direction: column; min-height: 236px; padding: 20px 21px; transition: border-color 160ms ease, transform 160ms ease; }
.goal-card:hover { border-color: #dfe4e8; transform: translateY(-1px); }
.goal-card.is-done { background: #fcfefd; }
.goal-card.is-dropped { background: #fbfbfb; }
.goal-card-top, .goal-meta, .goal-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: 11px; }
.status-pill.active { color: #4e78a6; background: var(--blue-faint); border: 1px solid #e4edf6; }
.status-pill.done { color: var(--green-text); background: var(--green-soft); border: 1px solid #e1efe7; }
.status-pill.dropped { color: #777a7f; background: #f3f3f3; border: 1px solid #e9e9e9; }
.goal-card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.goal-standard { min-height: 48px; margin: 0 0 18px; color: var(--muted-dark); font-size: 12px; }
.goal-standard span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.goal-meta { margin-top: auto; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.goal-progress { display: grid; gap: 8px; margin-top: 14px; }
.goal-progress > div:first-child { color: var(--muted); font-size: 11px; }
.goal-progress strong { color: var(--text); font-size: 12px; font-weight: 600; }
.restore-button { align-self: flex-start; margin-top: 14px; padding: 6px 11px; color: #4b789f; background: var(--blue-faint); border: 1px solid #e1ebf4; border-radius: 999px; font-size: 11px; }
.floating-action { position: fixed; right: clamp(24px, 4vw, 64px); bottom: 30px; z-index: 15; padding: 11px 20px; color: #fff; background: var(--blue); border-radius: 999px; box-shadow: 0 8px 22px rgba(74, 117, 159, .18); }
.floating-action:hover { background: var(--blue-deep); }
.review-status { display: grid; justify-items: end; gap: 3px; padding-top: 14px; color: var(--muted); font-size: 12px; text-align: right; }
.review-status strong { color: var(--blue-deep); font-weight: 560; }
.review-form { display: grid; gap: 13px; width: min(100%, 1040px); }
.review-question { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; padding: 20px 22px 15px; }
.question-number { grid-row: 1 / span 2; color: #b9c5d1; font-size: 12px; font-variant-numeric: tabular-nums; }
.question-title { font-size: 15px; font-weight: 580; }
.review-question textarea { grid-column: 2; width: 100%; min-height: 72px; margin-top: 8px; padding: 8px 0; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #dcdcdc; border-radius: 0; outline: 0; resize: vertical; }
.review-question textarea::placeholder { color: #b4b4b4; }
.review-question textarea:focus { border-bottom-color: var(--blue); }
.review-summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 8px; padding: 24px 26px; color: #fff; background: var(--navy); border-color: var(--navy); }
.summary-label { color: #aab8d0; font-size: 11px; letter-spacing: .08em; }
.review-summary p { margin: 6px 0 3px; font-size: 15px; }
.review-summary p strong { font-size: 18px; font-weight: 620; }
.review-summary p i { display: inline-block; width: 1px; height: 14px; margin: 0 9px; background: rgba(255,255,255,.25); vertical-align: -2px; }
.review-summary small { color: #aab8d0; font-size: 11px; }
.review-save { flex: 0 0 auto; padding: 10px 18px; color: var(--navy); background: #fff; border-radius: 999px; font-weight: 600; }
.review-save:hover { background: #eef3fa; }.my-grid { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-card { position: sticky; top: 32px; display: grid; justify-items: start; padding: 28px 25px; }
.profile-avatar { width: 82px; height: 82px; margin-bottom: 20px; border-radius: 50%; font-size: 25px; }
.profile-copy h2 { margin: 2px 0 6px; font-size: 23px; font-weight: 620; }
.profile-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-stats div { display: grid; gap: 2px; }
.profile-stats strong { font-size: 22px; font-weight: 600; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.my-content { display: grid; gap: 16px; min-width: 0; }
.list-section, .settings-section { padding: 23px 24px; }
.list-section .section-heading, .settings-section .section-heading { margin-bottom: 15px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 15px 0; background: transparent; border-top: 1px solid var(--line); text-align: left; }
.list-row > span:first-child { display: grid; gap: 2px; }
.list-row strong { font-size: 14px; font-weight: 580; }
.list-row small { color: var(--muted); font-size: 11px; }
.list-row-tail { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.list-row:hover strong, .list-row:hover .list-row-tail { color: var(--blue-deep); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setting-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 11px 13px; background: #fbfbfb; border: 1px solid var(--line); border-radius: var(--radius-card); text-align: left; }
.setting-item:hover { border-color: #dce6ef; background: var(--blue-faint); }
.setting-item span { color: var(--muted-dark); font-size: 12px; }
.setting-item strong { overflow: hidden; font-size: 12px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(27,35,48,.28); backdrop-filter: blur(3px); }
.modal { width: min(100%, 560px); padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 24px 70px rgba(35,47,65,.15); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-heading h2 { margin: 0; font-size: 24px; font-weight: 620; }
.field { display: grid; gap: 7px; }
.field > span, .energy-choice legend { color: var(--muted-dark); font-size: 12px; }
.field input { width: 100%; padding: 11px 12px; color: var(--text); background: #fbfbfb; border: 1px solid var(--line); border-radius: 2px; }
.field input:focus { background: #fff; border-color: #bfd1e4; outline: 0; }
.energy-choice { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.energy-choice legend { grid-column: 1 / -1; margin-bottom: 7px; }
.energy-choice label { position: relative; cursor: pointer; }
.energy-choice input { position: absolute; opacity: 0; }
.energy-choice label > span { display: grid; justify-items: center; gap: 2px; padding: 10px 5px; color: var(--muted-dark); background: #fbfbfb; border: 1px solid var(--line); border-radius: 2px; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.energy-choice small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.energy-choice input:checked + span { color: var(--blue-deep); background: var(--blue-faint); border-color: #c8dbea; }
.energy-choice input:focus-visible + span { outline: 2px solid rgba(123,165,212,.55); outline-offset: 2px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.primary-button, .secondary-button { padding: 10px 16px; border-radius: 999px; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover { background: var(--blue-deep); }
.secondary-button { color: var(--muted-dark); background: #f5f5f5; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 80; max-width: min(92vw, 560px); padding: 11px 16px; color: #fff; background: rgba(34,51,90,.94); border-radius: 999px; box-shadow: 0 12px 30px rgba(34,51,90,.18); font-size: 12px; text-align: center; transform: translateX(-50%); }
@media (max-width: 1180px) {
  .main-content { padding-right: 32px; padding-left: 32px; }
  .today-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  .week-overview { gap: 30px; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 158px; }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .brand { margin-left: 7px; }
  .brand-name { font-size: 21px; }
  .today-grid, .week-overview { grid-template-columns: 1fr; }
  .week-overview { gap: 22px; }
  .my-grid { grid-template-columns: 230px minmax(0, 1fr); }
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 22px 16px 96px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; }
  .page-heading h1 { font-size: 35px; }
  .heading-actions { padding-top: 2px; }
  .heading-actions .avatar-button { display: none; }
  .intent-strip, .week-overview { padding: 18px; }
  .today-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 30px; }
  .energy-panel { min-height: 0; }
  .goal-grid { grid-template-columns: 1fr; }
  .floating-action { right: 18px; bottom: 86px; }
  .my-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .profile-stats { margin-top: 22px; }
  .mobile-nav { position: fixed; right: 12px; bottom: 10px; left: 12px; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(31,42,57,.1); backdrop-filter: blur(14px); }
  .mobile-nav button { display: grid; justify-items: center; gap: 2px; padding: 5px; color: var(--muted); background: transparent; border-radius: 10px; font-size: 10px; }
  .mobile-nav button.is-active { color: var(--blue-deep); background: var(--blue-faint); }
  .mobile-nav svg { width: 18px; height: 18px; }
}
@media (max-width: 620px) {
  .brand-kicker { font-size: 10px; }
  .page-subtitle { max-width: 260px; }
  .date-label { display: none; }
  .intent-strip { align-items: flex-start; }
  .intent-strip .text-button { font-size: 12px; }
  .pillar-card { grid-template-columns: 30px minmax(0, 1fr); padding: 18px 17px; }
  .pillar-title-line { display: block; }
  .pillar-duration { display: block; margin-top: 3px; }
  .energy-facts { grid-template-columns: 1fr; gap: 9px; }
  .energy-facts div { display: flex; justify-content: space-between; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) 48px; gap: 8px; }
  .task-meta { display: none; }
  .goal-card { min-height: 0; }
  .review-status { display: none; }
  .review-question { grid-template-columns: 32px minmax(0, 1fr); padding: 17px 16px 13px; }
  .review-summary { align-items: flex-start; flex-direction: column; padding: 20px; }
  .review-summary p i { display: none; }
  .review-summary p strong:not(:first-of-type) { margin-left: 10px; }
  .review-save { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .energy-choice { grid-template-columns: repeat(3, 1fr); }
  .modal { padding: 20px; }
}
/* Mobile viewport safeguard for embedded browsers and PWA shells. */
@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mobile-nav {
    right: auto;
    left: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}
@media (max-width: 820px) {
  .mobile-nav {
    right: auto;
    left: 50%;
    width: min(366px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: translateX(-50%);
  }

  .mobile-nav button {
    min-width: 0;
    overflow: hidden;
  }
}
/* Welcome and pillar editor */
body.welcome-open {
  overflow: hidden;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #fafafa;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.welcome-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.welcome-inner {
  display: grid;
  justify-items: center;
  width: min(100%, 720px);
  text-align: center;
  animation: welcome-rise 520ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes welcome-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  justify-content: center;
  gap: 4px;
  width: 58px;
  height: 58px;
  margin-bottom: 27px;
  padding: 13px 12px;
  background: var(--blue);
  border-radius: 15px;
}

.welcome-mark span {
  display: block;
  width: 5px;
  background: #fff;
  border-radius: 5px;
}

.welcome-mark span:nth-child(1) { height: 15px; opacity: .72; }
.welcome-mark span:nth-child(2) { height: 27px; }
.welcome-mark span:nth-child(3) { height: 20px; opacity: .86; }
.welcome-kicker { margin: 0; color: var(--blue-deep); font-size: 11px; font-weight: 650; letter-spacing: .22em; }
.welcome-screen h1 { margin: 8px 0 15px; font-size: clamp(64px, 9vw, 104px); font-weight: 650; letter-spacing: -.08em; line-height: .95; }
.welcome-slogan { margin: 0; color: var(--muted-dark); font-size: clamp(16px, 2vw, 21px); letter-spacing: .015em; }
.welcome-enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 12px 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(95, 140, 189, .18);
  transition: background 160ms ease, transform 160ms ease;
}
.welcome-enter:hover { background: var(--blue-deep); transform: translateY(-1px); }
.welcome-enter span { font-size: 17px; }

.pillar-tools { display: inline-flex; align-items: center; gap: 8px; }
.edit-inline-button {
  padding: 2px 7px;
  color: var(--blue-deep);
  background: transparent;
  border: 1px solid #dfeaf4;
  border-radius: 999px;
  font-size: 10px;
}
.edit-inline-button:hover { background: var(--blue-faint); }
.pillar-form-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; margin-top: 16px; }
.field-textarea { margin-top: 16px; }
.field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: #fbfbfb;
  border: 1px solid var(--line);
  border-radius: 2px;
  resize: vertical;
}
.field textarea:focus { background: #fff; border-color: #bfd1e4; outline: 0; }
.pillar-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; padding: 0; border: 0; }
.pillar-points legend { grid-column: 1 / -1; color: var(--muted-dark); font-size: 12px; }
.pillar-points label { position: relative; cursor: pointer; }
.pillar-points input { position: absolute; opacity: 0; }
.pillar-points label > span {
  display: grid;
  place-items: center;
  min-height: 43px;
  color: var(--muted-dark);
  background: #fbfbfb;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
}
.pillar-points input:checked + span { color: var(--blue-deep); background: var(--blue-faint); border-color: #c8dbea; }
.pillar-points input:focus-visible + span { outline: 2px solid rgba(123, 165, 212, .55); outline-offset: 2px; }

@media (max-width: 620px) {
  .pillar-form-row { grid-template-columns: 1fr; }
  .welcome-screen { padding: 22px; }
  .welcome-screen h1 { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Date controls */
.date-control-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.date-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.date-picker:focus-within {
  border-color: #bfd1e4;
  box-shadow: 0 0 0 3px rgba(123, 165, 212, .12);
}

.date-picker-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border-radius: 50%;
  font-size: 10px;
}

.date-picker input {
  width: 116px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.date-picker input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .58;
}

.week-heading-tools {
  display: grid;
  justify-items: end;
  gap: 7px;
  padding-top: 8px;
}

.week-date-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.date-step {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--muted-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.date-step:hover {
  color: var(--blue-deep);
  background: var(--blue-faint);
  border-color: #d7e5f2;
}

@media (max-width: 620px) {
  .page-heading {
    flex-wrap: wrap;
  }

  .date-control-stack {
    justify-items: start;
  }

  .week-heading-tools {
    width: 100%;
    justify-items: stretch;
  }

  .week-date-controls {
    justify-content: space-between;
  }

  .date-picker input {
    width: 126px;
  }
}
/* Editable weekly goals */
.goal-edit-button {
  padding: 4px 9px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border: 1px solid #e1ebf4;
  border-radius: 999px;
  font-size: 11px;
}

.goal-edit-button:hover {
  color: #3f719f;
  background: #edf4fb;
}

.goal-modal {
  width: min(100%, 620px);
}

.goal-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}

.goal-points {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.goal-form-row .field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--text);
  background: #fbfbfb;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.goal-form-row .field select:focus {
  background: #fff;
  border-color: #bfd1e4;
  outline: 0;
}

.goal-link-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted-dark);
  font-size: 12px;
  cursor: pointer;
}

.goal-link-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-deep);
}

.goal-reason-field {
  margin-top: 14px;
}

@media (max-width: 620px) {
  .goal-form-row {
    grid-template-columns: 1fr;
  }
}
/* Dot-centered identity */
.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid #d9e6f2;
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(123, 165, 212, .12);
  transform: translate(-50%, -50%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed #d7e4f0;
  border-radius: 50%;
}

.brand-mark span {
  position: absolute;
  z-index: 2;
  width: 5px !important;
  height: 5px !important;
  opacity: 1 !important;
  background: var(--blue) !important;
  border-radius: 50% !important;
}

.brand-mark span:nth-child(1) { top: 5px; right: 8px; }
.brand-mark span:nth-child(2) { right: 5px; bottom: 8px; }
.brand-mark span:nth-child(3) { bottom: 5px; left: 8px; }

.welcome-screen {
  overflow: hidden;
  background: radial-gradient(circle at 50% 48%, #ffffff 0, #fafafa 44%, #f7f9fb 100%);
}

.welcome-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.welcome-orbit svg {
  width: min(1220px, 122vw);
  height: auto;
  overflow: visible;
}

.connection-map { opacity: .72; }
.node-line {
  fill: none;
  stroke: #a9c4dd;
  stroke-width: 1.15;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  animation: line-flow 9s linear infinite;
}
.node-line.line-b,
.node-line.line-d { animation-delay: -1.7s; }
.node-line.line-c,
.node-line.line-e { animation-delay: -3.4s; }
.node-line.line-a,
.node-line.line-f { animation-delay: -5.2s; }

@keyframes line-flow { to { stroke-dashoffset: -120; } }

.pulse-ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-breathe 4.8s ease-out infinite;
}
.ring-two { animation-delay: -1.6s; }
.ring-three { animation-delay: -3.2s; }

@keyframes ring-breathe {
  0% { opacity: .04; transform: scale(.82); }
  35% { opacity: .28; }
  100% { opacity: 0; transform: scale(1.15); }
}

.satellite {
  fill: var(--blue);
  transform-box: fill-box;
  transform-origin: center;
  animation: node-breathe 3.8s ease-in-out infinite;
}
.satellite.s2,
.satellite.s5 { animation-delay: -1.1s; }
.satellite.s3,
.satellite.s6 { animation-delay: -2.2s; }

@keyframes node-breathe {
  0%, 100% { opacity: .36; transform: scale(.72); }
  50% { opacity: .92; transform: scale(1); }
}

.anchor-dot {
  fill: var(--blue);
  opacity: .12;
  transform-box: fill-box;
  transform-origin: center;
  animation: anchor-breathe 4.8s ease-in-out infinite;
}

@keyframes anchor-breathe {
  0%, 100% { opacity: .08; transform: scale(.82); }
  50% { opacity: .18; transform: scale(1.12); }
}

.welcome-inner { position: relative; z-index: 2; }
.welcome-kicker {
  margin-bottom: 20px;
  color: #6f8fae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .38em;
}

.welcome-logotype {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  color: #1b2432;
  font-family: "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(88px, 12vw, 164px);
  font-weight: 800;
  letter-spacing: -.11em;
  line-height: .82;
  transform: scaleX(.94);
  text-rendering: geometricPrecision;
}

.logotype-zhi { display: inline-block; transform: translateY(-.015em); }
.logotype-dian { position: relative; display: inline-block; padding-right: .03em; }

.glyph-node {
  position: absolute;
  z-index: 3;
  display: block;
  width: .075em;
  height: .075em;
  min-width: 7px;
  min-height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(123, 165, 212, .12);
  animation: glyph-node-pulse 3.2s ease-in-out infinite;
}
.glyph-node-a { left: 24%; bottom: 1%; }
.glyph-node-b { left: 49%; bottom: -2%; animation-delay: -.8s; }
.glyph-node-c { left: 73%; bottom: 1%; animation-delay: -1.6s; }
.glyph-node-d { right: 3%; bottom: 14%; animation-delay: -2.4s; }

@keyframes glyph-node-pulse {
  0%, 100% { transform: scale(.72); opacity: .52; }
  50% { transform: scale(1); opacity: 1; }
}

.welcome-slogan {
  margin-top: 36px;
  color: #69717d;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 450;
  letter-spacing: .11em;
}

.welcome-enter {
  margin-top: 34px;
  padding: 12px 19px;
  color: #ffffff;
  background: #22335a;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(34, 51, 90, .14);
}
.welcome-enter:hover { background: #172746; }
.enter-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(123, 165, 212, .18);
}

@media (max-width: 620px) {
  .welcome-orbit svg { width: 190vw; }
  .welcome-kicker { margin-bottom: 15px; }
  .welcome-logotype { font-size: 92px; }
  .welcome-slogan { margin-top: 26px; font-size: 14px; letter-spacing: .06em; }
  .welcome-enter { margin-top: 28px; }
  .brand-mark { width: 32px; height: 32px; }
}.auth-screen,
.onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  background: radial-gradient(circle at 50% 42%, #ffffff 0, #fafafa 44%, #f7f9fb 100%);
}
.auth-screen[hidden],
.onboarding-screen[hidden] { display: none; }
.auth-back {
  position: absolute;
  top: 24px;
  left: 26px;
  padding: 7px 10px;
  color: var(--muted-dark);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
}
.auth-back:hover { color: var(--blue-deep); background: var(--blue-faint); }
.auth-shell { width: min(100%, 440px); padding: 8px 0; }
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 42px;
  color: #1b2432;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 {
  margin: 4px 0 9px;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 22px;
  padding: 4px;
  background: #f0f2f4;
  border-radius: 999px;
}
.auth-tab {
  padding: 8px 12px;
  color: var(--muted-dark);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
}
.auth-tab.is-active {
  color: #315d8c;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(35, 47, 65, .06);
  font-weight: 600;
}
.auth-form { display: grid; gap: 16px; }
.code-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-input-row input { min-width: 0; }
.code-button {
  padding: 0 14px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border: 1px solid #dce8f3;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 11px;
}
.code-button:hover { background: #edf4fb; }
.code-button:disabled { color: #a8adb3; background: #f5f5f5; border-color: var(--line); cursor: default; }
.auth-help { margin: -5px 0 0; color: var(--muted); font-size: 11px; }
.auth-submit,
.onboarding-submit {
  width: 100%;
  padding: 12px 18px;
  color: #ffffff;
  background: #22335a;
  border-radius: 999px;
  font-weight: 600;
}
.auth-submit:hover,
.onboarding-submit:hover { background: #172746; }
.auth-terms { margin: 18px 0 0; color: #a3a7ad; font-size: 10px; text-align: center; }.onboarding-shell {
  width: min(100%, 600px);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}
.onboarding-progress i { display: block; width: 30px; height: 1px; background: #d8dde2; }
.onboarding-heading { margin-bottom: 27px; }
.onboarding-heading h1 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 4vw, 39px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.onboarding-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.onboarding-form { display: grid; gap: 16px; }
.onboarding-submit { margin-top: 7px; }
.onboarding-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 620px) {
  .auth-screen,
  .onboarding-screen { place-items: start center; padding: 72px 18px 28px; }
  .auth-back { top: 16px; left: 12px; }
  .auth-brand { margin-bottom: 34px; }
  .onboarding-shell { padding: 24px 20px; }
  .onboarding-screen { padding-top: 24px; }
  .onboarding-progress { margin-bottom: 24px; }
}
@media (max-width: 620px) {
  .code-input-row {
    grid-template-columns: 1fr;
  }

  .code-button {
    min-height: 40px;
    padding: 8px 12px;
  }
}
.share-access-button {
  width: 100%;
  margin-top: 11px;
  padding: 10px 16px;
  color: var(--blue-deep);
  background: transparent;
  border: 1px solid #dce8f3;
  border-radius: 999px;
  font-size: 12px;
}

.share-access-button:hover {
  background: var(--blue-faint);
}
/* Editable review cards */
.review-question { position: relative; }
.question-meta { display: flex; grid-row: 1 / span 2; flex-direction: column; align-items: flex-start; gap: 8px; }
.remove-question { display: grid; place-items: center; width: 21px; height: 21px; padding: 0; color: #a5a9af; background: transparent; border-radius: 50%; font-size: 15px; line-height: 1; }
.remove-question:hover { color: #6e7682; background: #f0f1f2; }
.question-title-input { grid-column: 2; width: 100%; padding: 1px 0 7px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #dcdcdc; outline: 0; font-size: 15px; font-weight: 580; }
.question-title-input:focus { border-bottom-color: var(--blue); }
.review-add-row { display: flex; align-items: center; gap: 14px; padding: 4px 2px 8px; color: var(--muted); font-size: 11px; }
.review-add-button { padding: 8px 13px; color: var(--blue-deep); background: var(--blue-faint); border: 1px solid #dce8f3; border-radius: 999px; white-space: nowrap; }
.review-add-button:hover { background: #edf4fb; }
.review-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.review-export { padding: 10px 18px; color: #ffffff; background: var(--blue-deep); border-radius: 999px; font-weight: 600; }
.review-export:hover { background: #4f7da9; }
.review-save.secondary-action { color: var(--navy); background: #ffffff; }
@media (max-width: 620px) {
  .review-add-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .review-actions { width: 100%; flex-direction: column-reverse; }
  .review-actions button { width: 100%; }
}
/* Energy guidance emphasis */
.energy-hint {
  color: #626a75;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.75;
  letter-spacing: .015em;
}

.energy-keyword {
  color: var(--blue-deep);
  font-weight: 700;
}

.modal-energy-hint {
  margin: 16px 0 0;
  padding: 11px 13px;
  background: var(--blue-faint);
  border-left: 2px solid var(--blue);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.65;
}
/* Read-only review energy allocation */
.review-energy-allocation {
  display: grid;
  gap: 17px;
  padding: 23px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.energy-allocation-heading,
.energy-allocation-overview,
.energy-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.energy-allocation-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 620;
}

.auto-calc-badge {
  padding: 5px 9px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border: 1px solid #e4eef8;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.energy-allocation-overview {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.energy-allocation-overview div {
  display: grid;
  gap: 2px;
}

.energy-allocation-overview span {
  color: var(--muted);
  font-size: 11px;
}

.energy-allocation-overview strong {
  font-size: 19px;
  font-weight: 620;
}

.review-energy-progress > span {
  background: var(--blue);
}

.energy-breakdown {
  display: grid;
  gap: 13px;
}

.energy-breakdown-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 50px;
  gap: 13px;
}

.energy-breakdown-label,
.energy-breakdown-value {
  font-size: 12px;
}

.energy-breakdown-label { color: var(--muted-dark); }
.energy-breakdown-value { color: var(--text); font-weight: 600; text-align: right; }
.energy-breakdown-track { height: 6px; overflow: hidden; background: #edf0f3; border-radius: 999px; }
.energy-breakdown-track span { display: block; height: 100%; background: #b7cde3; border-radius: inherit; }
.energy-breakdown-row:nth-child(2) .energy-breakdown-track span { background: #9ab8d6; }
.energy-breakdown-row:nth-child(3) .energy-breakdown-track span { background: #7ba5d4; }
.energy-breakdown-row:nth-child(4) .energy-breakdown-track span { background: #c7d6e5; }
.energy-allocation-note { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 620px) {
  .energy-allocation-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .energy-allocation-overview strong { font-size: 16px; }
  .energy-breakdown-row { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 9px; }
}
/* Weekly goal controls and task editing */
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-add-button {
  padding: 7px 12px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border: 1px solid #dce8f3;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.section-add-button:hover { background: #edf4fb; }
.section-add-button:disabled { color: #b5b8bd; background: #f5f5f5; border-color: var(--line); cursor: default; }

.task-row {
  grid-template-columns: 32px minmax(0, 1fr) minmax(80px, auto) 52px 30px;
}

.task-more {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #a1a6ad;
  background: transparent;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.task-more:hover { color: var(--blue-deep); background: var(--blue-faint); }
.task-row.is-off-date { display: none; }
.task-date-field input { max-width: 100%; }

@media (max-width: 620px) {
  .section-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) 48px 28px; }
  .task-row .task-meta { display: none; }
  .task-more { width: 26px; height: 26px; }
}
.delete-goal-button {
  margin-right: auto;
  padding: 9px 4px;
  color: #7b828c;
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
}

.delete-goal-button:hover {
  color: #5f6670;
  background: #f4f4f4;
}
/* Editable local profile */
.profile-edit-button {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--blue-faint);
  border: 1px solid #dce8f3;
  border-radius: 999px;
  font-size: 11px;
}

.profile-edit-button:hover { background: #edf4fb; }
.profile-modal { width: min(100%, 520px); }
.profile-form-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--blue-faint);
  border: 1px solid #e3edf6;
  border-radius: 2px;
}
.profile-form-preview .profile-avatar { width: 48px; height: 48px; margin: 0; font-size: 17px; }
.profile-form-preview p { margin: 0; color: var(--muted); font-size: 11px; }