:root {
  --system-blue: #007aff;
  --system-blue-dark: #0062cc;
  --system-green: #34c759;
  --system-orange: #ff9f0a;
  --system-red: #ff3b30;
  --system-purple: #af52de;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --separator: rgba(60, 60, 67, 0.12);
  --background: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --sidebar: rgba(248, 248, 250, 0.82);
  --shadow: 0 20px 60px rgba(34, 42, 56, 0.09), 0 2px 10px rgba(34, 42, 56, 0.04);
  --shadow-soft: 0 10px 35px rgba(34, 42, 56, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(115, 171, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 45% 105%, rgba(175, 82, 222, 0.08), transparent 34rem),
    var(--background);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.26);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.ambient-one { right: -180px; top: 18%; background: rgba(0, 122, 255, 0.11); }
.ambient-two { left: 24%; bottom: -260px; background: rgba(175, 82, 222, 0.08); }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 248px;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
}
.brand-block { display: flex; align-items: center; gap: 13px; padding: 0 12px 32px; }
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #13161d, #363d4c);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 8px 18px rgba(24, 30, 42, .18);
}
.brand-mark span {
  width: 6px;
  height: 23px;
  border-radius: 999px;
  background: linear-gradient(#f2f7ff, #5ca2ff);
  box-shadow: 0 0 12px rgba(92, 162, 255, 0.7);
}
.brand-name { font-size: 19px; line-height: 1.1; font-weight: 670; letter-spacing: -0.02em; }
.brand-subtitle { margin-top: 4px; color: var(--tertiary); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-list { display: grid; gap: 6px; }
.nav-item {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  background: transparent;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}
.nav-item:hover { background: rgba(118, 118, 128, 0.08); color: var(--ink); }
.nav-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1687ff, #006bd6);
  box-shadow: 0 7px 18px rgba(0, 122, 255, .24);
}
.nav-icon { width: 20px; font-size: 18px; text-align: center; }
.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 4px;
  border-top: 1px solid var(--separator);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--secondary);
}
.privacy-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--system-green); box-shadow: 0 0 0 4px rgba(52,199,89,.12); }
.sidebar-footer strong, .sidebar-footer span, .sidebar-footer a { display: block; }
.sidebar-guide { margin-top: 9px; color: var(--system-blue); font-size: 12px; font-weight: 600; text-decoration: none; }
.sidebar-guide:hover { text-decoration: underline; }
.sidebar-footer strong { color: var(--ink); font-size: 13px; font-weight: 640; }
.sidebar-footer span { margin-top: 4px; font-size: 12px; line-height: 1.5; }

.main-content { width: calc(100% - 248px); margin-left: 248px; padding: 30px clamp(28px, 4vw, 64px) 120px; }
.topbar {
  max-width: 1180px;
  margin: 0 auto 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow, .section-label, .large-kicker {
  color: var(--system-blue);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.topbar h1 { margin: 5px 0 0; font-size: 30px; letter-spacing: -.035em; }
.topbar-status { display: flex; align-items: center; gap: 8px; }
.status-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary);
  background: rgba(255,255,255,.62);
  box-shadow: 0 4px 14px rgba(44,52,64,.05);
  font-size: 11px;
  backdrop-filter: blur(18px);
}
button.status-pill { cursor: pointer; }
.status-led { width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); }
[data-tone="good"] .status-led { background: var(--system-green); box-shadow: 0 0 0 4px rgba(52,199,89,.11); }
[data-tone="warn"] .status-led { background: var(--system-orange); box-shadow: 0 0 0 4px rgba(255,159,10,.11); }
[data-tone="blue"] .status-led { background: var(--system-blue); box-shadow: 0 0 0 4px rgba(0,122,255,.11); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }

.view { display: none; max-width: 1180px; margin: 0 auto; animation: view-in .36s ease both; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.welcome-row, .page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.large-kicker { margin: 0 0 10px; }
.welcome-row h2, .page-intro h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 690;
}
.page-intro { align-items: flex-start; }
.page-intro h2 { font-size: clamp(30px, 3.5vw, 48px); }
.page-intro p:not(.large-kicker) { max-width: 650px; margin: 14px 0 0; color: var(--secondary); line-height: 1.7; font-size: 14px; }

.surface-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}
.context-strip {
  margin-bottom: 20px;
  padding: 10px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border-radius: 19px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.72);
}
.context-chip {
  flex: 1;
  min-width: 170px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  background: rgba(255,255,255,.62);
  font-size: 11px;
  white-space: nowrap;
}
.context-chip b { font-weight: 600; }
.context-chip em { margin-left: auto; color: var(--secondary); font-style: normal; }
.context-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--system-blue); }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, .75fr); gap: 20px; }
.action-card { min-height: 520px; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; overflow: hidden; }
.action-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -160px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,122,255,.15), transparent 68%);
  pointer-events: none;
}
.card-label-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.decision-badge, .source-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--system-blue-dark);
  background: rgba(0,122,255,.09);
  font-size: 11px;
  font-weight: 620;
}
.source-badge { align-self: flex-start; white-space: nowrap; }
.action-card h3 { margin: 46px 0 14px; max-width: 760px; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.action-reason { max-width: 620px; margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.slope-control {
  width: fit-content;
  margin-top: 34px;
  padding: 3px;
  display: flex;
  border-radius: 11px;
  background: rgba(118,118,128,.12);
}
.slope-control button { border: 0; border-radius: 8px; padding: 8px 15px; color: var(--secondary); background: transparent; font-size: 11px; font-weight: 580; cursor: pointer; transition: .2s; }
.slope-control button.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.09); }
.action-meta { margin-top: auto; padding-top: 34px; display: flex; gap: 50px; }
.action-meta span, .decision-footer span { display: block; color: var(--tertiary); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.action-meta strong { display: block; margin-top: 5px; font-size: 14px; }
.action-buttons { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.interaction-note { margin: 14px 0 0; color: var(--tertiary); font-size: 10px; }
.side-stack { display: grid; gap: 20px; }
.decision-card, .goal-card { padding: 27px; }
.decision-symbol { margin: 26px 0 18px; color: var(--system-blue); font-size: 52px; line-height: 1; font-weight: 300; }
.decision-card h3, .goal-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.decision-card p, .goal-card p { margin: 0; color: var(--secondary); font-size: 12px; line-height: 1.7; }
.decision-footer { margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--separator); }
.decision-footer strong { max-width: 170px; font-size: 11px; text-align: right; }
.goal-progress { margin-top: 25px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(118,118,128,.12); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55a8ff, #007aff); transition: width .5s ease; }
.goal-progress > div:last-child { margin-top: 9px; display: flex; justify-content: space-between; color: var(--tertiary); font-size: 10px; }

.button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 610;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: var(--system-blue); box-shadow: 0 8px 22px rgba(0,122,255,.22); }
.button-primary:hover { background: var(--system-blue-dark); box-shadow: 0 10px 26px rgba(0,122,255,.28); }
.button-secondary { color: var(--ink); background: rgba(118,118,128,.10); }
.button-secondary:hover { background: rgba(118,118,128,.16); }
.button-text { padding-inline: 10px; color: var(--system-blue); background: transparent; box-shadow: none; }
.button-large { min-width: 170px; min-height: 52px; border-radius: 15px; font-size: 15px; }
.full-width { width: 100%; }
.link-button, .icon-button, .modal-close {
  border: 0;
  padding: 0;
  color: var(--system-blue);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.icon-button { width: 30px; height: 30px; border-radius: 50%; color: var(--secondary); background: rgba(118,118,128,.09); font-size: 15px; }

.plan-overview, .action-list-card { padding: 32px; }
.action-list-card { margin-top: 20px; }
.plan-heading { display: flex; justify-content: space-between; gap: 30px; }
.plan-heading h3, .action-list-card h3 { margin: 8px 0; font-size: 25px; letter-spacing: -.03em; }
.plan-heading p { margin: 0; color: var(--secondary); font-size: 13px; }
.milestone-list { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.milestone-item { position: relative; min-height: 150px; padding: 19px; border-radius: 18px; background: rgba(118,118,128,.055); }
.milestone-item.is-current { color: #fff; background: linear-gradient(145deg, #1288ff, #0066d5); box-shadow: 0 14px 32px rgba(0,122,255,.2); }
.milestone-number { color: var(--tertiary); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.milestone-item.is-current .milestone-number { color: rgba(255,255,255,.68); }
.milestone-item h4 { margin: 26px 0 8px; font-size: 16px; }
.milestone-item p { margin: 0; color: var(--secondary); font-size: 11px; line-height: 1.55; }
.milestone-item.is-current p { color: rgba(255,255,255,.76); }
.milestone-item.is-done { opacity: .55; }
.milestone-item.is-done .milestone-number { color: var(--system-green); }
.quiet-caption { color: var(--tertiary); font-size: 11px; }
.action-list { margin-top: 25px; display: grid; gap: 10px; }
.plan-action {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 15px;
  background: rgba(118,118,128,.055);
  border: 1px solid transparent;
}
.plan-action.is-current { border-color: rgba(0,122,255,.22); background: rgba(0,122,255,.06); }
.plan-action.is-done { opacity: .5; }
.action-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--secondary); background: #fff; font-size: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.plan-action.is-current .action-index { color: #fff; background: var(--system-blue); }
.plan-action strong { display: block; font-size: 13px; }
.plan-action small { display: block; margin-top: 4px; color: var(--tertiary); font-size: 10px; }
.plan-action > span:last-child { color: var(--secondary); font-size: 11px; }
.plan-action.is-postponed { opacity: .55; }
.plan-action.is-postponed .action-index { color: var(--system-orange); background: rgba(255,159,10,.14); }
.action-decision-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--system-blue-dark);
  background: rgba(0,122,255,.1);
  font-size: 10px;
  font-weight: 620;
}
.action-minutes { color: var(--secondary); font-size: 11px; }
.action-minutes b.is-recommended { color: var(--system-blue-dark); font-weight: 700; }
.page-intro-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-adjustments-card { margin-top: 20px; padding: 28px 32px; }
.ai-adjustments-card h3 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.02em; }
.ai-changes { margin-top: 18px; display: grid; gap: 9px; }
.ai-change { padding: 12px 14px; border-radius: 13px; background: rgba(118,118,128,.055); }
.ai-change strong { font-size: 12px; font-weight: 640; }
.ai-change p { margin: 5px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.6; }
.ai-energy-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 13px; color: var(--system-blue-dark); background: rgba(0,122,255,.07); font-size: 11px; line-height: 1.6; }
.decision-ai-replan { margin-top: 14px; font-weight: 640; }
.button.is-attention { animation: attention-pulse 1.6s ease-in-out infinite; }
.button.is-working { animation: work-pulse 1.3s ease-in-out infinite; }
@keyframes work-pulse { 50% { opacity: .55; } }
@keyframes attention-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,122,255,.18); }
  50% { box-shadow: 0 0 0 7px rgba(0,122,255,.14), 0 8px 22px rgba(0,122,255,.18); }
}

.context-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; }
.audio-card, .manual-card { padding: 30px; }
.audio-card h3, .manual-card h3 { margin: 7px 0 0; font-size: 22px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--tertiary); font-size: 10px; font-weight: 660; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); }
.live-indicator.is-live { color: var(--system-red); }
.live-indicator.is-live i { background: var(--system-red); box-shadow: 0 0 0 4px rgba(255,59,48,.11); animation: live-pulse 1.5s infinite; }
@keyframes live-pulse { 50% { opacity: .45; } }
#audio-visualizer { width: 100%; height: 150px; margin: 25px 0 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(0,122,255,.055), rgba(255,255,255,.2)); }
.audio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.audio-stats > div { padding: 12px; border-radius: 13px; background: rgba(118,118,128,.055); }
.audio-stats span, .audio-stats strong { display: block; }
.audio-stats span { color: var(--tertiary); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.audio-stats strong { margin-top: 5px; font-size: 12px; }
.semantic-control { margin-top: 20px; padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); }
.semantic-control strong, .semantic-control span { display: block; }
.semantic-control strong { font-size: 13px; }
.semantic-control span { max-width: 490px; margin-top: 4px; color: var(--tertiary); font-size: 10px; line-height: 1.5; }
.switch { position: relative; flex: 0 0 auto; width: 45px; height: 26px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(120,120,128,.24); cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--system-green); }
.switch input:checked + span::after { transform: translateX(19px); }
.transcript-box { position: relative; margin-top: 18px; padding: 17px; border-radius: 15px; background: rgba(118,118,128,.055); }
.transcript-box p { max-width: calc(100% - 50px); margin: 7px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.6; }
.transcript-box .link-button { position: absolute; right: 17px; top: 17px; }
.range-field { display: block; margin-top: 26px; }
.range-field > span { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.range-field b { font-weight: 580; }
.range-field em { color: var(--system-blue); font-style: normal; font-variant-numeric: tabular-nums; }
.range-field input { width: 100%; margin-top: 14px; accent-color: var(--system-blue); }
.manual-card .button { margin-top: 30px; }
.snapshot-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.snapshot-card { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 8px 28px rgba(35,43,57,.04); }
.snapshot-card span, .snapshot-card strong, .snapshot-card small { display: block; }
.snapshot-card span { color: var(--tertiary); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-card strong { margin-top: 14px; font-size: 19px; }
.snapshot-card small { margin-top: 5px; color: var(--tertiary); font-size: 9px; }

.trace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.trace-card, .privacy-card { padding: 28px; }
.trace-list { display: grid; gap: 0; }
.trace-empty { padding: 60px 20px; color: var(--tertiary); text-align: center; font-size: 13px; }
.trace-event { position: relative; padding: 4px 0 24px 34px; }
.trace-event::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--system-blue); box-shadow: 0 0 0 5px rgba(0,122,255,.08); }
.trace-event::after { content: ""; position: absolute; left: 11.5px; top: 20px; bottom: 2px; width: 1px; background: var(--separator); }
.trace-event:last-child::after { display: none; }
.trace-event header { display: flex; justify-content: space-between; gap: 18px; }
.trace-event strong { font-size: 12px; }
.trace-event time { color: var(--tertiary); font-size: 9px; }
.trace-event p { margin: 6px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.6; }
.privacy-card h3 { margin: 10px 0 15px; font-size: 23px; letter-spacing: -.03em; }
.privacy-card ul { margin: 0; padding-left: 18px; color: var(--secondary); font-size: 11px; line-height: 2; }
.privacy-card .button { margin-top: 18px; }
.privacy-card .button.danger { color: var(--system-red); }
.backup-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.backup-actions .button { margin-top: 18px; }
.privacy-card code { font-size: 10px; color: var(--system-blue-dark); }
.sound-control { margin-top: 18px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--separator); }
.sound-control strong, .sound-control > div > span { display: block; }
.sound-control strong { font-size: 12px; }
.sound-control > div > span { margin-top: 3px; max-width: 190px; color: var(--tertiary); font-size: 10px; line-height: 1.5; }
.goal-card-actions { display: flex; gap: 12px; }
.goals-bar { margin-bottom: 20px; padding: 14px 20px; }
.goals-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.goals-select-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.goals-select-wrap select { max-width: 340px; border: 1px solid var(--separator); border-radius: 10px; padding: 8px 12px; background: rgba(255,255,255,.75); font-size: 13px; color: var(--ink); }
.goal-stats { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.goal-stats span { padding: 3px 9px; border-radius: 999px; color: var(--system-blue-dark); background: rgba(0,122,255,.08); font-size: 10px; font-weight: 620; }
.confetti-layer { position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.loop-ripple { position: absolute; inset: -6px; border-radius: 26px; border: 2px solid rgba(52,199,89,.85); animation: ripple-out .7s ease-out forwards; pointer-events: none; }
.loop-ripple.is-warm { border-color: rgba(255,159,10,.8); }
@keyframes ripple-out { from { opacity: .9; transform: scale(.92); } to { opacity: 0; transform: scale(1.4); } }

.loop-dock {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 22px;
  width: 276px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 23px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  transition: .3s ease;
}
.loop-dock.is-collapsed { width: 230px; }
.loop-dock.is-collapsed .loop-body { display: none; }
.loop-head { padding: 13px 14px; display: flex; align-items: center; gap: 10px; }
.loop-head > div:nth-child(2) { flex: 1; min-width: 0; }
.loop-head strong, .loop-head span { display: block; }
.loop-head strong { font-size: 11px; }
.loop-head span { margin-top: 2px; overflow: hidden; color: var(--tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.loop-mini-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: #20232a; }
.loop-mini-mark i { width: 4px; height: 16px; border-radius: 999px; background: #77b8ff; box-shadow: 0 0 10px rgba(119,184,255,.8); }
.loop-body { padding: 10px 18px 18px; border-top: 1px solid var(--separator); }
.loop-device { position: relative; width: 105px; height: 45px; margin: 16px auto 13px; border-radius: 23px; background: linear-gradient(145deg, #2a2d35, #101216); box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 12px 22px rgba(0,0,0,.18); }
.loop-light { position: absolute; width: 52px; height: 5px; left: 26px; top: 20px; border-radius: 999px; background: #79baff; box-shadow: 0 0 11px rgba(121,186,255,.9); transition: .25s; }
.loop-light.is-warm { background: #ffbd4a; box-shadow: 0 0 12px rgba(255,189,74,.85); }
.loop-light.is-green { background: #52d273; box-shadow: 0 0 12px rgba(82,210,115,.85); }
.loop-light.is-off { opacity: .18; box-shadow: none; }
.loop-device.is-pulsing { animation: loop-vibrate .42s ease; }
@keyframes loop-vibrate { 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.loop-button { position: absolute; right: -3px; top: 16px; width: 5px; height: 14px; border-radius: 3px; background: #6e7178; }
.loop-body p { margin: 0 0 13px; color: var(--secondary); font-size: 10px; line-height: 1.5; text-align: center; }
.loop-body .button + .button { margin-top: 5px; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20,24,32,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.modal-backdrop.is-open { display: flex; animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: min(650px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.98);
  box-shadow: 0 30px 100px rgba(30,38,53,.22);
}
.modal-panel.compact { width: min(560px, 100%); }
.modal-panel h2 { margin: 10px 0 10px; font-size: 34px; letter-spacing: -.045em; }
.modal-panel > p { margin: 0 0 28px; color: var(--secondary); font-size: 14px; line-height: 1.7; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 31px; height: 31px; border-radius: 50%; color: var(--secondary); background: rgba(118,118,128,.10); font-size: 21px; }
.form-field { display: block; margin-top: 18px; }
.form-field > span { display: block; margin-bottom: 7px; color: var(--secondary); font-size: 11px; font-weight: 580; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--separator);
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(118,118,128,.055);
  resize: vertical;
  font-size: 13px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-list { display: grid; gap: 9px; margin-top: 25px; }
.evidence-item { padding: 13px 14px; display: flex; gap: 10px; border-radius: 13px; color: var(--secondary); background: rgba(118,118,128,.06); font-size: 11px; line-height: 1.5; }
.evidence-item i { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--system-blue); }
.confidence-note { margin-top: 18px; padding: 14px; border-radius: 13px; color: var(--secondary); background: rgba(0,122,255,.07); font-size: 11px; line-height: 1.6; }
.probe-panel { text-align: center; }
.probe-pulse { width: 80px; height: 80px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 28px; background: #20232a; box-shadow: 0 18px 36px rgba(20,26,36,.18); }
.probe-pulse i { width: 7px; height: 42px; border-radius: 999px; background: #78baff; box-shadow: 0 0 18px rgba(120,186,255,.85); animation: probe-glow 1.8s ease-in-out infinite; }
@keyframes probe-glow { 50% { opacity: .38; box-shadow: 0 0 5px rgba(120,186,255,.35); } }
.probe-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.focus-overlay {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 15%, rgba(66,139,255,.34), transparent 32rem),
    linear-gradient(145deg, #10141c, #07090d 72%);
}
.focus-overlay.is-open { display: flex; animation: focus-in .45s ease; }
@keyframes focus-in { from { opacity: 0; } to { opacity: 1; } }
.focus-content { width: min(700px, 90vw); padding: 40px; text-align: center; }
.focus-orb { width: 90px; height: 90px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg, #2c323e, #12151a); box-shadow: 0 20px 60px rgba(0,0,0,.36); }
.focus-orb i { width: 8px; height: 51px; border-radius: 999px; background: #81bdff; box-shadow: 0 0 24px rgba(129,189,255,.9); animation: focus-breathe 3s ease-in-out infinite; }
@keyframes focus-breathe { 50% { opacity: .32; transform: scaleY(.78); } }
.focus-content .section-label { color: #81bdff; }
.focus-content h2 { margin: 16px auto 12px; max-width: 620px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.045em; }
.focus-timer { margin: 25px 0 14px; font-size: clamp(70px, 12vw, 120px); font-weight: 230; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.focus-content p { max-width: 560px; margin: 0 auto; color: rgba(255,255,255,.56); font-size: 12px; line-height: 1.7; }
.focus-actions { margin-top: 32px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.focus-actions .button-secondary { color: #fff; background: rgba(255,255,255,.12); }
.button.inverted { color: rgba(255,255,255,.7); }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 30px;
  max-width: min(620px, 92vw);
  padding: 16px 24px;
  border-radius: 16px;
  color: #fff;
  background: rgba(28,31,37,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translate(-50%, 18px) scale(.96);
  pointer-events: none;
  transition: .28s cubic-bezier(.2, .9, .3, 1.2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.ai-activity-chip {
  position: fixed;
  z-index: 120;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  color: #fff;
  background: rgba(32,35,42,.95);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(20,26,36,.35);
  animation: chip-in .3s ease;
}
.ai-activity-chip[hidden] { display: none; }
@keyframes chip-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ai-activity-orb { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #20232a; }
.ai-activity-orb i { width: 5px; height: 20px; border-radius: 999px; background: #79baff; box-shadow: 0 0 12px rgba(121,186,255,.9); animation: orb-breathe 1.2s ease-in-out infinite; }
@keyframes orb-breathe { 50% { opacity: .35; transform: scaleY(.7); } }
.ai-activity-text strong { display: block; font-size: 12px; font-weight: 620; }
.ai-activity-progress { display: block; width: 220px; height: 3px; margin-top: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.14); }
.ai-activity-progress::after { content: ""; display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55a8ff, #af52de); animation: progress-slide 1.1s ease-in-out infinite; }
@keyframes progress-slide { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
.loop-light.is-thinking { animation: thinking-breathe 1.1s ease-in-out infinite; }
@keyframes thinking-breathe { 50% { opacity: .45; box-shadow: 0 0 18px rgba(121,186,255,.95); } }

/* ================================================================
   排版与间距精修（保持苹果风：克制的字号层级 / 行高 / 字距 / 间距节奏）
   ================================================================ */

/* —— 全局基线 —— */
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.55; text-rendering: optimizeLegibility; }
::selection { background: rgba(0,122,255,.18); }
h1, h2, h3, h4 { text-wrap: balance; }

/* —— 滚动条（WebKit 苹果风） —— */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120,120,128,.28); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* —— 标题节奏 —— */
.topbar h1 { line-height: 1.12; letter-spacing: -.03em; }
.welcome-row h2, .page-intro h2 { line-height: 1.06; letter-spacing: -.042em; }
.action-card h3 { line-height: 1.12; letter-spacing: -.04em; }
.decision-card h3, .goal-card h3 { line-height: 1.2; letter-spacing: -.025em; }
.plan-heading h3, .action-list-card h3 { line-height: 1.2; letter-spacing: -.028em; }
.audio-card h3, .manual-card h3 { line-height: 1.22; letter-spacing: -.02em; }
.privacy-card h3 { line-height: 1.2; }
.modal-panel h2 { line-height: 1.1; letter-spacing: -.04em; }
.focus-content h2 { line-height: 1.1; }
.ai-adjustments-card h3 { line-height: 1.25; }

/* —— 正文行高与可读性 —— */
.action-reason { line-height: 1.75; }
.page-intro p:not(.large-kicker) { line-height: 1.75; }
.decision-card p, .goal-card p { line-height: 1.75; }
.milestone-item p { font-size: 12px; line-height: 1.7; }
.plan-heading p { line-height: 1.65; }
.plan-action small { line-height: 1.5; }
.trace-event p { line-height: 1.7; }
.evidence-item { font-size: 12px; line-height: 1.7; }
.confidence-note { font-size: 12px; line-height: 1.7; }
.privacy-card ul { font-size: 12px; line-height: 1.9; }
.privacy-card ul li + li { margin-top: 2px; }
.transcript-box p { line-height: 1.7; }
.snapshot-card small { line-height: 1.55; }
.semantic-control > div > span { line-height: 1.65; }
.interaction-note { line-height: 1.5; }
.focus-content p { font-size: 13px; line-height: 1.8; }
.loop-body p { line-height: 1.6; }
.modal-panel > p { line-height: 1.75; }
.toast { line-height: 1.55; }

/* —— 小标签字距 —— */
.eyebrow, .section-label, .large-kicker { letter-spacing: .12em; line-height: 1.5; }
.quiet-caption { letter-spacing: .03em; }
.decision-footer span, .action-meta span { letter-spacing: .09em; }
.trace-event time { letter-spacing: .04em; }

/* —— 数字使用等宽数字 —— */
.context-chip em, .action-meta strong, .audio-stats strong, .snapshot-card strong, .action-minutes, .focus-timer { font-variant-numeric: tabular-nums; }

/* —— 按钮 —— */
.button { min-height: 42px; padding: 0 18px; font-size: 14px; letter-spacing: .01em; }
.button-large { min-height: 54px; border-radius: 15px; font-size: 15px; }
.link-button, .icon-button, .modal-close { letter-spacing: .01em; }
.slope-control button { padding: 8px 16px; font-size: 12px; }

/* —— 表单 —— */
.form-field > span { font-size: 12px; margin-bottom: 8px; }
.form-field input, .form-field textarea { font-size: 14px; line-height: 1.55; padding: 13px 14px; border-radius: 14px; }
.form-grid { gap: 14px; }
.modal-actions { margin-top: 32px; }
.range-field { margin-top: 30px; }
.range-field > span { font-size: 13px; }
.range-field input { margin-top: 16px; }

/* —— 卡片内边距与间距节奏 —— */
.topbar { margin-bottom: 36px; }
.welcome-row, .page-intro { margin-bottom: 32px; }
.today-grid, .context-grid, .trace-layout { gap: 24px; }
.side-stack { gap: 24px; }
.decision-card, .goal-card { padding: 30px; }
.plan-overview, .action-list-card { padding: 34px; }
.trace-card, .privacy-card { padding: 32px; }
.ai-adjustments-card { padding: 30px 34px; }
.milestone-list { gap: 14px; }
.milestone-item { padding: 22px; border-radius: 20px; }
.milestone-item h4 { font-size: 17px; margin: 28px 0 8px; line-height: 1.3; }
.milestone-number { letter-spacing: .1em; }
.action-list { gap: 12px; }
.plan-action { padding: 15px 18px; border-radius: 16px; }
.plan-action strong { font-size: 14px; }
.plan-action small { font-size: 11px; }
.action-minutes { font-size: 12px; }
.snapshot-grid { gap: 14px; }
.snapshot-card { padding: 22px; }
.snapshot-card strong { font-size: 20px; }
.context-strip { padding: 12px; gap: 8px; }
.context-chip { padding: 11px 13px; font-size: 12px; }
.audio-stats strong { font-size: 13px; }
.audio-stats span { letter-spacing: .09em; }
.goal-progress { margin-top: 28px; }
.goal-progress > div:last-child { font-size: 11px; }
.goal-stats span { font-size: 11px; }
.decision-symbol { margin: 30px 0 20px; }
.decision-footer { margin-top: 32px; padding-top: 20px; }
.action-buttons { margin-top: 24px; gap: 12px; }
.trace-event strong { font-size: 13px; }
.nav-item { padding: 12px 15px; border-radius: 14px; }
.status-pill { font-size: 11.5px; }
.loop-head strong { font-size: 12px; }
.loop-head span { font-size: 10px; }
.ai-activity-text strong { font-size: 13px; }
.focus-content { padding: 48px; }

/* —— 动效统一：更柔和的过渡 —— */
.button, .nav-item, .link-button, .slope-control button { transition-timing-function: cubic-bezier(.32,.72,.24,1); }
body:has(.focus-overlay.is-open) .loop-dock,
body:has(.breathe-overlay.is-open) .loop-dock { z-index: 145; }

/* —— 跨设备漫游 —— */
.sync-control { margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--separator); }
.sync-control strong { display: block; font-size: 12px; }
.sync-control > div > span { display: block; margin-top: 3px; max-width: 190px; color: var(--tertiary); font-size: 10px; line-height: 1.5; }
.sync-input-row { margin-top: 10px; display: flex; gap: 8px; }
.sync-input-row input { flex: 1; min-width: 0; border: 1px solid var(--separator); border-radius: 10px; padding: 8px 10px; font-size: 11px; background: rgba(255,255,255,.7); }

/* —— 复盘趋势 —— */
.trend-card { margin-bottom: 20px; padding: 28px 32px; }
.trend-card h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.02em; }
#trend-chart { width: 100%; height: 130px; margin-top: 16px; display: block; }
.trend-legend { margin-top: 8px; display: flex; gap: 16px; color: var(--tertiary); font-size: 10px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-steps { width: 10px; height: 10px; border-radius: 3px; background: rgba(0,122,255,.45); }
.trend-energy { width: 10px; height: 3px; border-radius: 999px; background: #ff9f0a; }

/* —— 今日计划 —— */
.today-plan-card { margin-bottom: 20px; padding: 24px 28px; }
.today-plan-card h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.02em; }
.today-plan-list { margin-top: 14px; display: grid; gap: 8px; }
.plan-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(118,118,128,.055); border: 1px solid transparent; }
.plan-item.is-active { border-color: rgba(0,122,255,.28); background: rgba(0,122,255,.06); }
.plan-item.is-done { opacity: .55; }
.plan-item-time { flex: 0 0 auto; min-width: 88px; color: var(--system-blue-dark); font-size: 12px; font-weight: 660; font-variant-numeric: tabular-nums; }
.plan-item-body { flex: 1; min-width: 0; }
.plan-item-body strong { display: block; font-size: 13px; }
.plan-item-body small { display: block; margin-top: 3px; color: var(--tertiary); font-size: 10px; }
.plan-item-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.plan-item-actions .button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.advisor-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.advisor-slot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.advisor-slot-content { flex: 1; min-width: 0; }
.advisor-add { flex: 0 0 auto; margin-top: 2px; }

/* —— 问 Telos（日程顾问） —— */
.advisor-card { margin-bottom: 20px; padding: 24px 28px; }
.advisor-card h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.02em; }
.advisor-input-row { margin-top: 16px; display: flex; gap: 10px; }
.advisor-input-row input { flex: 1; border: 1px solid var(--separator); border-radius: 13px; padding: 12px 14px; font-size: 14px; background: rgba(255,255,255,.8); }
.advisor-input-row input:focus { outline: 3px solid rgba(0,122,255,.18); }
.advisor-presets { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.advisor-preset { border: 0; border-radius: 999px; padding: 6px 12px; color: var(--system-blue-dark); background: rgba(0,122,255,.08); font-size: 11px; font-weight: 600; cursor: pointer; transition: .2s; }
.advisor-preset:hover { background: rgba(0,122,255,.15); }
.advisor-answer { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(0,122,255,.05); border: 1px solid rgba(0,122,255,.12); }
.advisor-answer p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.7; font-weight: 600; }
.advisor-slots { margin-top: 14px; display: grid; gap: 10px; }
.advisor-slot { padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.8); }
.advisor-slot strong { display: block; font-size: 13px; }
.advisor-slot p { margin: 5px 0 0 !important; color: var(--secondary); font-size: 12px !important; font-weight: 400 !important; line-height: 1.6 !important; }
.advisor-slot small { display: block; margin-top: 4px; color: var(--tertiary); font-size: 10px; line-height: 1.5; }

/* —— 虚拟手环：实体按键模拟 —— */
.loop-device.is-interactive { cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .15s ease; }
.loop-device.is-interactive:hover { transform: scale(1.03); }
.loop-device.is-interactive:active { transform: scale(.96); }
.loop-device.is-holding { transform: scale(.94); box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 0 0 4px rgba(255,159,10,.25), 0 12px 22px rgba(0,0,0,.18); }
.gesture-legend { margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; color: var(--tertiary); font-size: 9px; }

/* —— 能量日历（明日预报） —— */
.forecast-card { margin-top: 20px; }
.forecast-bars { margin-top: 18px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 96px; }
.forecast-slot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.forecast-bar { width: 100%; max-width: 22px; min-height: 4px; border-radius: 5px 5px 2px 2px; background: rgba(0,122,255,.35); }
.forecast-bar.is-peak { background: linear-gradient(180deg, #ffb340, #ff9f0a); }
.forecast-bar.is-trough { background: rgba(118,118,128,.3); }
.forecast-slot span { color: var(--tertiary); font-size: 9px; }

/* —— 多目标路线全景 —— */
.roadmap-card { margin-bottom: 24px; padding: 28px 32px; }
.roadmap-card h3 { margin: 8px 0 20px; font-size: 22px; letter-spacing: -.02em; }
.roadmap-row { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.roadmap-goal { flex: 0 0 170px; min-width: 0; }
.roadmap-goal strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-goal small { display: block; margin-top: 3px; color: var(--tertiary); font-size: 10px; }
.roadmap-path { flex: 1; display: flex; align-items: center; min-width: 0; }
.road-node { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--system-blue); box-shadow: 0 0 0 4px rgba(0,122,255,.12); }
.road-node.is-upcoming { background: #fff; border: 2px solid rgba(118,118,128,.28); color: transparent; box-shadow: none; }
.road-node.is-current { box-shadow: 0 0 0 4px rgba(0,122,255,.2), 0 0 12px rgba(0,122,255,.55); }
.road-node.is-done { background: var(--system-green); box-shadow: 0 0 0 4px rgba(52,199,89,.12); }
.roadmap-link { flex: 1; height: 3px; border-radius: 999px; background: rgba(118,118,128,.18); }
.roadmap-link.is-walked { background: rgba(52,199,89,.55); }
.roadmap-flag { margin-left: 8px; font-size: 16px; }

/* —— Loop 模拟器 —— */
.loop-log-card { padding: 28px; }
.loop-log-card h3 { margin: 8px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.loop-log-note { margin: 0 0 16px; color: var(--secondary); font-size: 11px; line-height: 1.7; }
.loop-log-note code { font-size: 10px; color: var(--system-blue-dark); }
.loop-log-note a { color: var(--system-blue); text-decoration: none; }
.loop-log-list { display: grid; gap: 10px; }
.loop-log-item { display: flex; align-items: flex-start; gap: 10px; }
.loop-log-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--tertiary); }
.loop-log-dot.is-green { background: var(--system-green); box-shadow: 0 0 0 3px rgba(52,199,89,.14); }
.loop-log-dot.is-warm { background: var(--system-orange); box-shadow: 0 0 0 3px rgba(255,159,10,.14); }
.loop-log-dot.is-blue { background: var(--system-blue); box-shadow: 0 0 0 3px rgba(0,122,255,.14); }
.loop-log-item strong { display: block; font-size: 12px; }
.loop-log-item small { display: block; margin-top: 2px; color: var(--tertiary); font-size: 9px; }

/* —— 能量潮汐 —— */
.tide-card { margin-top: 20px; padding: 28px 32px; }
.tide-card h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.02em; }
#tide-chart { width: 100%; height: 120px; margin-top: 18px; display: block; }
.tide-note { margin: 12px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.7; }

/* —— 走过的路（画廊） —— */
.journey-card { margin-top: 24px; padding: 28px 32px; }
.journey-card h3 { margin: 8px 0 22px; font-size: 22px; letter-spacing: -.02em; }
.journey-item { position: relative; padding: 0 0 24px 34px; }
.journey-item::before { content: ""; position: absolute; left: 8px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--system-blue); box-shadow: 0 0 0 5px rgba(0,122,255,.08); }
.journey-item.is-goal::before { background: var(--system-orange); box-shadow: 0 0 0 5px rgba(255,159,10,.12); }
.journey-item::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: 2px; width: 1px; background: var(--separator); }
.journey-item:last-child::after { display: none; }
.journey-head { display: flex; justify-content: space-between; gap: 16px; }
.journey-head strong { font-size: 14px; }
.journey-head time { color: var(--tertiary); font-size: 10px; }
.journey-item p { margin: 5px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.7; }
.journey-item small { display: block; margin-top: 3px; color: var(--tertiary); font-size: 10px; }

/* —— 周报入口 —— */
.rhythm-actions { display: flex; align-items: center; gap: 14px; }

/* —— 脉搏速报 —— */
.pulse-strip { margin-bottom: 20px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 16px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.72); }
.pulse-label { color: var(--secondary); font-size: 12px; font-weight: 620; white-space: nowrap; }
.pulse-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pulse-chip { border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 8px 15px; background: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.pulse-chip:hover { background: #fff; transform: translateY(-1px); }
.pulse-chip.is-pressed { animation: pulse-press .5s ease; border-color: rgba(0,122,255,.5); background: rgba(0,122,255,.12); color: var(--system-blue-dark); }
@keyframes pulse-press { 35% { transform: scale(.93); } }

/* —— 节奏热力图 —— */
.rhythm-card { margin-bottom: 20px; padding: 28px 32px; }
.rhythm-card h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.02em; }
.heatmap { margin-top: 18px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.heat-cell { width: 12px; height: 12px; border-radius: 3px; background: rgba(118,118,128,.1); flex: 0 0 auto; }
.heat-cell.heat-empty { background: transparent; }
.heat-cell.heat-level-1 { background: rgba(0,122,255,.25); }
.heat-cell.heat-level-2 { background: rgba(0,122,255,.45); }
.heat-cell.heat-level-3 { background: rgba(0,122,255,.72); }
.heat-cell.heat-level-4 { background: var(--system-blue); }
.heatmap-legend { margin-top: 10px; display: flex; align-items: center; gap: 4px; color: var(--tertiary); font-size: 10px; }
.heatmap-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.heatmap-legend .heat-level-0 { background: rgba(118,118,128,.1); }
.heatmap-legend .heat-level-1 { background: rgba(0,122,255,.25); }
.heatmap-legend .heat-level-2 { background: rgba(0,122,255,.45); }
.heatmap-legend .heat-level-3 { background: rgba(0,122,255,.72); }
.heatmap-legend .heat-level-4 { background: var(--system-blue); }

/* —— 成就徽章墙 —— */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.badge-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 8px 28px rgba(35,43,57,.04); }
.badge-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; background: rgba(0,122,255,.08); }
.badge-card strong { display: block; font-size: 14px; }
.badge-card p { margin: 5px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.badge-card time { display: block; margin-top: 6px; color: var(--tertiary); font-size: 10px; }
.badge-card.is-locked { opacity: .55; }
.badge-card.is-locked .badge-icon { background: rgba(118,118,128,.1); }

/* —— AI 复盘 —— */
.retrospect-section { margin-top: 22px; }
.retrospect-list { margin: 10px 0 0; padding-left: 18px; color: var(--secondary); font-size: 13px; line-height: 1.75; }
.retrospect-list li + li { margin-top: 6px; }

/* —— 呼吸一刻 —— */
.breathe-overlay { position: fixed; z-index: 132; inset: 0; display: none; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(66,139,255,.3), transparent 30rem), linear-gradient(145deg, #0e1420, #07090d 70%); }
.breathe-overlay.is-open { display: flex; animation: focus-in .4s ease; }
.breathe-content { width: min(560px, 90vw); text-align: center; }
.breathe-orb { width: 130px; height: 130px; margin: 0 auto 30px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(121,186,255,.22), rgba(121,186,255,.05) 65%); border: 2px solid rgba(129,189,255,.35); }
.breathe-orb i { width: 30px; height: 30px; border-radius: 50%; background: #81bdff; box-shadow: 0 0 26px rgba(129,189,255,.85); }
.breathe-orb.is-inhale { transition: transform 4s ease-in-out, box-shadow 4s ease-in-out; transform: scale(1.45); box-shadow: 0 0 80px rgba(129,189,255,.35); }
.breathe-orb.is-exhale { transition: transform 6s ease-in-out, box-shadow 6s ease-in-out; transform: scale(.8); box-shadow: 0 0 18px rgba(129,189,255,.15); }
.breathe-content .section-label { color: #81bdff; }
.breathe-content h2 { margin: 14px 0 10px; font-size: 30px; letter-spacing: -.03em; }
.breathe-timer { font-size: 56px; font-weight: 230; font-variant-numeric: tabular-nums; }
.breathe-content p { max-width: 400px; margin: 14px auto 30px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.7; }
.breathe-content .button-secondary { color: #fff; background: rgba(255,255,255,.12); }
.decision-breathe { margin-top: 8px; }
.goals-bar-actions { display: flex; align-items: center; gap: 12px; }

/* —— 回放：事件类型徽章与分类圆点 —— */
.trace-heading { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.trace-type { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; color: var(--system-blue-dark); background: rgba(0,122,255,.09); font-size: 9px; font-weight: 620; letter-spacing: .04em; }
.trace-event.trace-plan::before { background: var(--system-blue); box-shadow: 0 0 0 5px rgba(0,122,255,.09); }
.trace-event.trace-decision::before { background: var(--system-purple); box-shadow: 0 0 0 5px rgba(175,82,222,.1); }
.trace-event.trace-map::before { background: #5e5ce6; box-shadow: 0 0 0 5px rgba(94,92,230,.1); }
.trace-event.trace-outcome::before { background: var(--system-green); box-shadow: 0 0 0 5px rgba(52,199,89,.1); }
.trace-event.trace-context::before { background: #5ac8fa; box-shadow: 0 0 0 5px rgba(90,200,250,.12); }
.trace-event.trace-goal::before { background: var(--system-orange); box-shadow: 0 0 0 5px rgba(255,159,10,.12); }

@media (max-width: 1050px) {
  .today-grid, .context-grid, .trace-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .milestone-list { grid-template-columns: repeat(2, 1fr); }
  .snapshot-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-card { order: -1; }
}

@media (max-width: 780px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: none; }
  .main-content { width: 100%; margin-left: 0; padding: 22px 16px 150px; }
  .mobile-menu { display: block; }
  .topbar { align-items: flex-start; margin-bottom: 32px; }
  .topbar > div:nth-child(2) { flex: 1; }
  .topbar-status { display: none; }
  .welcome-row, .page-intro { align-items: flex-start; flex-direction: column; }
  .welcome-row h2 { font-size: 38px; }
  .context-strip { margin-inline: -4px; }
  .side-stack, .snapshot-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 520px; padding: 26px; }
  .action-card h3 { margin-top: 34px; font-size: 34px; }
  .action-meta { gap: 24px; }
  .milestone-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 34px 22px 26px; }
  .loop-dock { right: 12px; bottom: 12px; width: min(276px, calc(100vw - 24px)); }
}

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