:root {
  --background: hsl(148 22% 7%);
  --background-soft: hsl(150 16% 10%);
  --foreground: hsl(45 26% 92%);
  --muted: hsl(48 9% 67%);
  --muted-2: hsl(48 7% 50%);
  --panel: hsl(58 10% 15% / 0.92);
  --panel-strong: hsl(58 10% 18% / 0.96);
  --line: hsl(45 12% 100% / 0.1);
  --line-strong: hsl(45 12% 100% / 0.18);
  --gold: hsl(42 68% 62%);
  --green: hsl(153 38% 57%);
  --blue: hsl(205 42% 65%);
  --rose: hsl(354 52% 66%);
  --violet: hsl(266 36% 70%);
  --shadow: 0 6px 8px hsl(0 0% 0% / 0.18);
  font-family: Inter, "Avenir Next", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  background:
    linear-gradient(180deg, hsl(150 22% 10%) 0%, var(--background) 34%, hsl(132 14% 6%) 100%);
}

body::before {
  content: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.debug-user-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed hsl(42 68% 62% / 0.42);
  border-radius: 14px;
  color: var(--muted);
  background: hsl(42 68% 62% / 0.08);
  font-size: 12px;
}

.debug-user-switcher[hidden] {
  display: none;
}

.debug-user-switcher strong {
  display: block;
  color: var(--foreground);
  font-size: 12px;
}

.debug-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.debug-user-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foreground);
  background: hsl(0 0% 100% / 0.05);
  font-size: 12px;
  font-weight: 700;
}

.debug-user-actions button.is-active {
  border-color: hsl(153 38% 57% / 0.55);
  color: hsl(153 38% 78%);
  background: hsl(153 38% 57% / 0.16);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 8px 0 12px;
}

.profile-setup-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid hsl(153 38% 57% / 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, hsl(153 38% 57% / 0.12), hsl(42 68% 62% / 0.07)),
    var(--panel);
  box-shadow: var(--shadow);
}

.profile-setup-panel.is-ready {
  padding: 14px 16px;
  border-color: var(--line);
  background:
    linear-gradient(135deg, hsl(153 38% 57% / 0.1), hsl(42 68% 62% / 0.06)),
    hsl(44 38% 97% / 0.78);
}

.profile-setup-panel.is-ready:not(.is-open) {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 18px;
  box-shadow: none;
}

.profile-setup-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-setup-panel.is-ready:not(.is-open) .profile-setup-head {
  align-items: center;
  margin-bottom: 0;
}

.profile-setup-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.profile-setup-panel.is-ready:not(.is-open) .profile-setup-head h2 {
  font-size: 16px;
}

.profile-setup-panel.is-ready:not(.is-open) .eyebrow {
  display: none;
}

.profile-setup-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-setup-head span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: hsl(153 38% 78%);
  background: hsl(153 38% 57% / 0.14);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-setup-toggle {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foreground);
  background: hsl(0 0% 100% / 0.56);
  font-size: 12px;
  font-weight: 800;
}

.profile-setup-panel.is-ready:not(.is-open) .profile-setup-form {
  display: none;
}

.profile-setup-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--foreground);
  background: hsl(0 0% 100% / 0.05);
  line-height: 1.55;
  outline: none;
}

.profile-setup-form textarea:focus {
  border-color: hsl(153 38% 57% / 0.55);
  box-shadow: 0 0 0 3px hsl(153 38% 57% / 0.12);
}

.profile-setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.profile-setup-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-setup-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-setup-actions button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: hsl(150 22% 8%);
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.profile-setup-actions button.secondary {
  border: 1px solid var(--line);
  color: var(--foreground);
  background: hsl(0 0% 100% / 0.05);
}

.title-block {
  max-width: 880px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid hsl(42 18% 100% / 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, hsl(42 68% 62% / 0.88), hsl(153 38% 57% / 0.72)),
    var(--panel);
  box-shadow: inset 0 1px 1px hsl(0 0% 100% / 0.16);
}

.topbar h1,
.section-heading h2,
.focus-lens h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  max-width: 860px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 720;
  text-wrap: balance;
  word-break: keep-all;
}

.topbar h1 em {
  display: inline-block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  max-width: 680px;
  margin: 9px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.5;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: hsl(42 34% 70%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.date-chip,
.ghost-button,
.add-task button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: hsl(42 18% 100% / 0.06);
  color: var(--foreground);
  font-size: 14px;
  white-space: nowrap;
}

.ghost-button,
.focus-actions button,
.task-actions button,
.decision-actions button,
.focus-form button,
.add-task button {
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-button:hover,
.focus-actions button:hover,
.task-actions button:hover,
.decision-actions button:hover,
.focus-form button:hover,
.add-task button:hover {
  transform: translateY(-1px);
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.mission-strip span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: hsl(42 16% 9% / 0.88);
  color: hsl(42 24% 90% / 0.86);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.liquid-glass,
.priority-panel,
.planner-panel,
.today-focus,
.evening-done-panel,
.harvest-panel,
.evening-review,
.day-close-panel,
.task-panel,
.map-panel,
.dimension-panel,
.weekly-rhythm {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.priority-panel::before,
.planner-panel::before,
.today-focus::before,
.evening-done-panel::before,
.harvest-panel::before,
.evening-review::before,
.day-close-panel::before,
.task-panel::before,
.map-panel::before,
.dimension-panel::before,
.weekly-rhythm::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.08);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.36fr) minmax(300px, 0.92fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.priority-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
  border-color: hsl(160 44% 56% / 0.22);
}

.priority-summary {
  display: grid;
  gap: 10px;
  align-content: start;
}

.priority-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.priority-summary span,
.priority-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.priority-summary strong {
  display: block;
  margin: 7px 0;
  color: var(--foreground);
  font-size: 20px;
  line-height: 1.25;
}

.priority-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.priority-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.priority-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 32%, var(--line));
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.priority-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.priority-head h3 {
  margin: 4px 0 0;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.25;
}

.priority-head strong {
  flex: 0 0 auto;
  color: var(--dimension-color);
  font-size: 18px;
}

.priority-bars {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.priority-bars div {
  display: grid;
  gap: 4px;
}

.priority-bars i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--dimension-color) 0 var(--progress), hsl(42 18% 100% / 0.1) var(--progress) 100%);
}

.priority-card label {
  display: grid;
  gap: 5px;
}

.priority-range {
  width: 100%;
  accent-color: var(--dimension-color);
}

.recommendation-settings {
  grid-column: 2;
  overflow: hidden;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  background: hsl(42 70% 99% / 0.58);
}

.recommendation-settings summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: hsl(154 24% 34%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
}

.recommendation-settings summary::-webkit-details-marker {
  display: none;
}

.recommendation-settings summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: hsl(154 34% 92% / 0.76);
}

.recommendation-settings[open] summary::after {
  content: "-";
}

.priority-settings-copy {
  border-top: 1px solid hsl(38 22% 32% / 0.1);
  padding: 10px 12px 2px;
}

.priority-settings-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.recommendation-settings .priority-list {
  grid-column: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 12px 12px;
}

.recommendation-settings .priority-card {
  padding: 9px;
  background: hsl(42 76% 99% / 0.7);
}

.recommendation-settings .priority-head {
  margin-bottom: 8px;
}

.recommendation-settings .priority-head h3 {
  font-size: 13px;
}

.recommendation-settings .priority-head strong {
  font-size: 14px;
}

.planner-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: 18px;
  margin-top: 8px;
  padding: 18px;
  border-color: hsl(42 18% 100% / 0.12);
  background: linear-gradient(180deg, hsl(58 10% 18% / 0.96), hsl(58 10% 14% / 0.94));
}

.planner-form {
  display: grid;
  gap: 12px;
}

.planner-thread {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(0 0% 0% / 0.12);
}

.planner-message {
  width: min(88%, 680px);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.planner-message.user {
  justify-self: end;
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  background: hsl(42 82% 64% / 0.1);
}

.planner-message.assistant {
  justify-self: start;
  border-color: hsl(160 44% 56% / 0.34);
}

.planner-message.carryover {
  width: 100%;
  border-color: hsl(214 72% 68% / 0.34);
  background: hsl(214 72% 68% / 0.08);
}

.planner-message.carryover strong {
  color: var(--blue);
}

.planner-message.system {
  width: 100%;
}

.planner-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.planner-message p {
  margin: 0;
  color: hsl(42 22% 88%);
  font-size: 13px;
  line-height: 1.45;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chips button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: hsl(42 22% 88%);
  background: hsl(42 18% 100% / 0.045);
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.prompt-chips button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--gold) 46%, var(--line));
  background: hsl(42 82% 64% / 0.1);
}

.planner-form textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid hsl(42 18% 100% / 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--foreground);
  background: hsl(150 12% 8% / 0.74);
  font: inherit;
  line-height: 1.55;
}

.planner-form textarea:focus-visible,
.evening-done-form textarea:focus-visible,
.wrap-note-input:focus-visible,
.focus-form input:focus-visible,
.focus-form select:focus-visible,
.add-task input:focus-visible,
.add-task select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 68%, transparent);
  outline-offset: 2px;
}

.planner-context,
.quick-add-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.planner-context summary,
.quick-add-panel summary {
  min-height: 32px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.planner-context[open],
.quick-add-panel[open] {
  display: grid;
  gap: 10px;
}

.planner-form textarea::placeholder {
  color: var(--muted-2);
}

.planner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.planner-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.planner-actions button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 16px;
  color: hsl(42 20% 6%);
  background: var(--gold);
  font-weight: 900;
  transition: transform 160ms ease, opacity 160ms ease;
}

.planner-buttons {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.planner-actions button.secondary {
  border-color: var(--line-strong);
  color: var(--foreground);
  background: hsl(42 18% 100% / 0.055);
}

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

.planner-panel.is-thinking {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
}

.planner-panel.is-thinking .brand-mark,
.planner-panel.is-thinking .planner-actions button[type="submit"] {
  animation: softPulse 1.2s ease-in-out infinite;
}

.daily-command-board.is-thinking {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
}

.today-focus {
  margin-top: 14px;
  padding: 18px;
  border-color: hsl(42 18% 100% / 0.12);
  background: hsl(58 10% 13% / 0.94);
}

.fold-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(58 10% 12% / 0.72);
  box-shadow: none;
  overflow: hidden;
}

.fold-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.fold-panel > summary::-webkit-details-marker {
  display: none;
}

.fold-panel > summary b {
  display: block;
  color: var(--foreground);
  font-size: 16px;
}

.fold-panel > summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fold-panel > summary strong {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold);
  background: hsl(42 82% 64% / 0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.todo-pool-body,
.insight-fold > section,
.insight-grid {
  margin: 0 14px 14px;
}

.todo-pool-panel .task-panel {
  min-height: auto;
  box-shadow: none;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.harvest-panel {
  margin-top: 16px;
  padding: 22px;
}

.harvest-summary {
  display: grid;
  gap: 12px;
}

.harvest-hero,
.harvest-empty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--dimension-color, var(--gold)) 42%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dimension-bg, hsl(42 82% 64% / 0.18)) 50%, transparent), hsl(42 18% 100% / 0.04));
}

.harvest-kicker {
  margin: 0 0 6px;
  color: var(--dimension-color);
  font-size: 12px;
  font-weight: 900;
}

.harvest-hero h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 32px;
  line-height: 1.05;
}

.harvest-hero p,
.harvest-empty p {
  margin: 0;
  max-width: 680px;
  color: hsl(42 22% 88%);
  font-size: 14px;
  line-height: 1.5;
}

.harvest-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
}

.harvest-hero > strong {
  flex: 0 0 auto;
  align-self: center;
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 55%, var(--line));
  border-radius: 999px;
  color: var(--dimension-color);
  background: hsl(0 0% 0% / 0.2);
  font-size: 25px;
  font-weight: 950;
}

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

.harvest-dimension {
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 34%, var(--line));
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.04);
}

.harvest-dimension span {
  display: block;
  color: var(--dimension-color);
  font-size: 12px;
  font-weight: 900;
}

.harvest-dimension b {
  display: block;
  margin: 6px 0 8px;
  color: var(--foreground);
  font-size: 22px;
}

.harvest-dimension p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.evening-done-panel {
  margin-top: 16px;
  padding: 22px;
}

.evening-done-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.evening-done-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.evening-done-form button {
  min-width: 126px;
  border: 1px solid hsl(160 34% 48% / 0.42);
  border-radius: 8px;
  background: hsl(160 45% 72% / 0.94);
  color: hsl(156 18% 15%);
  font-weight: 950;
  transition: transform 160ms ease, filter 160ms ease;
}

.evening-done-form button:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

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

.evening-done-record,
.evening-done-empty {
  position: relative;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--dimension-color, hsl(160 44% 56%)) 34%, var(--line));
  border-radius: 8px;
  padding: 12px 42px 12px 13px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dimension-bg, hsl(160 44% 56% / 0.18)) 74%, transparent), hsl(42 70% 99% / 0.66));
}

.evening-done-record span,
.evening-done-empty span {
  display: block;
  color: var(--dimension-color, hsl(160 44% 44%));
  font-size: 12px;
  font-weight: 950;
}

.evening-done-record strong,
.evening-done-empty strong {
  display: block;
  margin-top: 4px;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evening-done-record small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.evening-done-record button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.evening-done-record button:hover {
  color: var(--foreground);
}

.evening-done-empty {
  grid-column: 1 / -1;
  padding-right: 13px;
}

.evening-review {
  margin-top: 16px;
  padding: 22px;
}

.day-close-panel {
  margin-top: 16px;
  padding: 22px;
  border-color: hsl(42 82% 64% / 0.26);
}

.day-close-summary {
  display: grid;
  gap: 12px;
}

.day-close-hero,
.day-close-empty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--dimension-color, var(--gold)) 42%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dimension-bg, hsl(42 82% 64% / 0.18)) 56%, transparent), hsl(42 18% 100% / 0.045));
}

.day-close-hero h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 30px;
  line-height: 1.08;
}

.day-close-hero p,
.day-close-empty p {
  margin: 0;
  max-width: 760px;
  color: hsl(42 22% 88%);
  font-size: 14px;
  line-height: 1.5;
}

.day-close-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
}

.day-close-hero > strong {
  flex: 0 0 auto;
  align-self: center;
  width: 88px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color, var(--gold)) 55%, var(--line));
  border-radius: 999px;
  color: var(--dimension-color, var(--gold));
  background: hsl(0 0% 0% / 0.22);
  font-size: 24px;
  font-weight: 950;
}

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

.day-close-card,
.day-close-notes article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.day-close-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.day-close-card strong {
  display: block;
  margin: 6px 0;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.day-close-card p,
.day-close-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.day-close-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-close-dimensions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 46%, var(--line));
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 42%, transparent);
  font-size: 12px;
  font-weight: 900;
}

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

.day-close-notes strong {
  display: block;
  margin-bottom: 7px;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.35;
}

.day-close-button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: hsl(42 20% 6%);
  background: var(--gold);
  font-weight: 950;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.day-close-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

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

.review-item,
.review-empty {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--dimension-color, var(--gold)) 34%, var(--line));
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.review-empty {
  grid-column: 1 / -1;
}

.review-item strong,
.review-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--foreground);
}

.review-item p,
.review-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-item span {
  flex: 0 0 auto;
  align-self: start;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 48%, var(--line));
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 30%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.focus-progress {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.focus-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 26%, var(--line));
  border-radius: 8px;
  background: hsl(56 8% 17% / 0.72);
  transform: translateY(0);
  animation: cardIn 420ms ease-out both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.focus-item.is-current {
  border-color: color-mix(in srgb, var(--dimension-color) 48%, hsl(42 18% 100% / 0.18));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dimension-bg) 28%, transparent), hsl(56 8% 18% / 0.84));
  box-shadow: 0 6px 8px color-mix(in srgb, var(--dimension-color) 16%, transparent);
}

.focus-item.is-done {
  background: color-mix(in srgb, var(--dimension-bg) 18%, hsl(56 8% 17% / 0.66));
  opacity: 0.82;
}

.focus-item.is-progressing,
.task-item.is-progressing {
  border-color: color-mix(in srgb, var(--gold) 44%, var(--line));
}

.focus-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 70%, var(--line));
  border-radius: 8px;
  color: var(--dimension-color);
  background: hsl(150 12% 8% / 0.34);
  font-size: 13px;
  font-weight: 850;
}

.focus-copy {
  min-width: 0;
}

.focus-copy h3 {
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 17px;
  line-height: 1.28;
  text-wrap: pretty;
}

.focus-item.is-current .focus-copy h3 {
  font-size: 18px;
  line-height: 1.22;
}

.focus-next {
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 24%, var(--line));
  border-radius: 8px;
  color: hsl(45 24% 93%);
  background: hsl(150 12% 8% / 0.36);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.45;
}

.focus-map-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 11px;
}

.map-chip {
  position: relative;
  min-height: 28px;
  min-width: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: hsl(42 18% 100% / 0.026);
}

.map-chip i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--strength) * 100%);
  background: transparent;
}

.map-chip b {
  position: relative;
  z-index: 1;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
}

.map-chip.is-active {
  border-color: color-mix(in srgb, var(--cell-color) 56%, var(--line));
  background: color-mix(in srgb, var(--cell-color) 10%, hsl(42 18% 100% / 0.035));
}

.map-chip.is-active i {
  min-height: 7px;
  background: var(--cell-color);
  box-shadow: none;
}

.map-chip.is-active b {
  color: hsl(42 30% 96%);
}

.map-chip.is-empty {
  border-color: var(--line);
  background: hsl(42 18% 100% / 0.045);
}

.focus-benefit {
  margin: 0 0 8px;
  color: hsl(42 26% 88%);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.focus-growth {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.progress-control {
  display: grid;
  gap: 7px;
  margin: 8px 0;
  padding: 7px;
  border: 1px solid hsl(42 18% 100% / 0.1);
  border-radius: 8px;
  background: hsl(150 12% 8% / 0.28);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: hsl(42 24% 90%);
  font-size: 12px;
  font-weight: 900;
}

.progress-left {
  color: var(--dimension-color);
}

.progress-range {
  width: 100%;
  accent-color: var(--dimension-color);
}

.progress-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--dimension-color) 0 var(--progress), hsl(42 18% 100% / 0.12) var(--progress) 100%);
}

.progress-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 2px solid hsl(150 16% 8%);
  border-radius: 999px;
  background: var(--dimension-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dimension-color) 14%, transparent);
  -webkit-appearance: none;
}

.wrap-note-input {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--foreground);
  background: hsl(150 12% 8% / 0.38);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.wrap-note-input::placeholder {
  color: var(--muted-2);
}

.focus-item .wrap-note-input {
  display: none;
}

.focus-item.is-progressing .wrap-note-input,
.focus-item.is-done .wrap-note-input,
.focus-item.is-settled .wrap-note-input,
.focus-item.has-note .wrap-note-input {
  display: block;
}

.focus-copy small {
  display: block;
  color: color-mix(in srgb, var(--dimension-color) 78%, var(--foreground));
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.settlement-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--dimension-bg) 42%, hsl(0 0% 0% / 0.14));
}

.settlement-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--dimension-color);
  font-size: 12px;
  font-weight: 950;
}

.settlement-note p {
  margin: 0;
  color: hsl(42 22% 90%);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
}

.focus-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  align-items: start;
}

.focus-reorder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.focus-more-actions {
  position: relative;
}

.focus-more-actions summary {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: hsl(42 18% 100% / 0.025);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.focus-more-actions summary::-webkit-details-marker {
  display: none;
}

.focus-more-actions[open] {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(58 10% 13% / 0.96);
}

.focus-actions button,
.task-actions button,
.decision-actions button,
.focus-form button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  background: hsl(42 18% 100% / 0.03);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
}

.focus-actions .focus-settle {
  border-color: var(--dimension-color);
  background: var(--dimension-color);
  color: hsl(42 20% 6%);
}

.focus-actions .focus-settle.is-settled {
  border-color: color-mix(in srgb, var(--dimension-color) 55%, var(--line));
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 42%, transparent);
}

.focus-actions button:disabled,
.task-actions button:disabled,
.focus-form button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.focus-form {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr auto;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.focus-form input,
.focus-form select,
.add-task input,
.add-task select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: hsl(42 18% 100% / 0.055);
  color: var(--foreground);
}

.focus-form input::placeholder,
.add-task input::placeholder {
  color: var(--muted-2);
}

.task-panel,
.decision-inbox,
.map-panel,
.dimension-panel {
  min-height: 700px;
  padding: 22px;
}

.decision-inbox {
  min-height: auto;
  border-bottom: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 12px;
}

.compact-heading h2 {
  font-size: 20px;
}

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

.decision-card,
.decision-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.04);
}

.decision-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.decision-card strong,
.decision-empty strong {
  display: block;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.3;
}

.decision-card p,
.decision-empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.decision-card small {
  display: block;
  margin-top: 8px;
  color: hsl(42 26% 88%);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.decision-actions button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 11px;
  background: hsl(42 18% 100% / 0.045);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 850;
}

.decision-actions button:first-child {
  border-color: var(--gold);
  background: hsl(42 82% 64% / 0.16);
  color: var(--gold);
}

.section-heading {
  position: relative;
  margin-bottom: 18px;
}

.section-heading h2 {
  color: var(--foreground);
  font-size: 26px;
  line-height: 1.12;
}

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

.task-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.task-item:first-child {
  border-top: 0;
}

.check-button {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.04);
  transition: transform 160ms ease, background 160ms ease;
}

.task-item.is-done .check-button {
  background: var(--green);
  box-shadow: inset 0 0 0 7px var(--background-soft);
}

.check-button:active {
  transform: scale(0.94);
}

.task-copy h3 {
  margin: 0 0 6px;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.25;
}

.task-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 42%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-bg) 34%, transparent);
  font-size: 12px;
  font-weight: 800;
}

.add-task {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.add-task label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.add-task button {
  width: 100%;
  margin-top: 12px;
  border-color: var(--green);
  background: var(--green);
  color: hsl(42 20% 6%);
  font-weight: 900;
}

.task-benefit {
  margin-bottom: 7px;
  color: hsl(42 30% 96%);
  font-size: 14px;
  font-weight: 800;
}

.task-growth {
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 8px;
  color: hsl(42 22% 88%);
  background: hsl(153 38% 57% / 0.06);
  font-weight: 800;
}

.task-capability {
  color: var(--muted);
}

.task-details {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.task-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.task-details summary::marker {
  color: var(--muted);
}

.task-details[open] {
  padding: 8px 0 0;
}

.task-details[open] .task-capability,
.task-details[open] .task-reason {
  margin-top: 6px;
}

.task-reason {
  margin-top: 5px;
}

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

.ability-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.ability-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ability-head h3 {
  margin: 0 0 6px;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.25;
}

.ability-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ability-head strong {
  flex: 0 0 auto;
  color: var(--dimension-color);
  font-size: 18px;
  font-weight: 900;
}

.ability-benefit {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 36%, transparent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
}

.ability-growth {
  margin: 0 0 10px;
  color: hsl(42 20% 88%);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.ability-definition,
.ability-signal,
.ability-not {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ability-signal {
  color: hsl(42 22% 88%);
  font-weight: 780;
}

.ability-not {
  color: hsl(38 10% 58%);
}

.level-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 11px 0 10px;
  padding: 0;
  list-style: none;
}

.level-list li {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  background: hsl(42 18% 100% / 0.035);
  font-size: 12px;
  line-height: 1.25;
}

.level-list li.is-reached {
  border-color: color-mix(in srgb, var(--dimension-color) 50%, var(--line));
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 34%, transparent);
  font-weight: 800;
}

.ability-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.focus-lens {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.focus-lens h3 {
  color: var(--foreground);
  font-size: 25px;
}

.focus-lens p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.score-ring {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 11;
}

.ring-track {
  stroke: hsl(42 18% 100% / 0.1);
}

.ring-progress {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  transition: stroke-dashoffset 260ms ease;
}

.score-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--foreground);
  font-size: 24px;
}

.dimension-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: hsl(42 18% 100% / 0.06);
}

.dimension-bar span {
  display: block;
  height: 100%;
  width: var(--progress);
  border-radius: inherit;
  background: var(--dimension-color);
  transition: width 240ms ease;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-item,
.empty-evidence {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.evidence-item {
  border-color: color-mix(in srgb, var(--dimension-color) 42%, var(--line));
}

.evidence-kicker {
  margin: 0 0 8px;
  color: var(--dimension-color);
  font-size: 12px;
  font-weight: 900;
}

.evidence-item h3,
.empty-evidence strong {
  display: block;
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.3;
}

.evidence-item p:not(.evidence-kicker),
.empty-evidence p {
  margin: 0;
  color: hsl(42 22% 88%);
  font-size: 13px;
  line-height: 1.48;
}

.evidence-item .benefit-line {
  margin-bottom: 8px;
  color: var(--dimension-color);
  font-weight: 800;
}

.evidence-item .wrap-line {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
}

.evidence-item .growth-line {
  margin-bottom: 8px;
  font-weight: 800;
}

.evidence-item small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ai-status {
  min-height: 20px;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

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

.modal-actions button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--foreground);
  background: hsl(42 18% 100% / 0.055);
  font-weight: 850;
}

.modal-actions .primary {
  border-color: var(--green);
  color: hsl(42 20% 6%);
  background: var(--green);
}

.growth-burst {
  position: fixed;
  z-index: 50;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--burst-color, var(--gold));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--burst-color, var(--gold)) 50%, transparent);
  animation: burstOut 700ms ease-out forwards;
}

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

@keyframes mapPulse {
  0%, 100% {
    opacity: 0.76;
  }
  50% {
    opacity: 1;
  }
}

@keyframes softPulse {
  0%, 100% {
    filter: saturate(1);
    opacity: 1;
  }
  50% {
    filter: saturate(1.25);
    opacity: 0.82;
  }
}

@keyframes burstOut {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.3);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--burst-color, var(--gold)) 52%, transparent);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
    box-shadow: 0 0 0 14px transparent;
  }
}

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

.weekly-rhythm {
  margin-top: 16px;
  padding: 22px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
}

.rhythm-day {
  min-height: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 18% 100% / 0.045);
}

.rhythm-day strong {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
}

.rhythm-day p {
  margin: 0;
  color: hsl(42 22% 88%);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .planner-panel {
    grid-template-columns: 1fr;
  }

  .priority-panel {
    grid-template-columns: 1fr;
  }

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

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

  .map-panel {
    grid-column: 1 / -1;
    order: -1;
  }

  .task-panel,
  .decision-inbox,
  .dimension-panel,
  .map-panel {
    min-height: auto;
  }

  .rhythm-grid,
  .mission-strip {
    overflow-x: auto;
  }

  .focus-list,
  .focus-form,
  .insight-grid,
  .evening-done-list,
  .review-list,
  .harvest-grid,
  .priority-list,
  .day-close-grid,
  .day-close-notes {
    grid-template-columns: 1fr;
  }

  .focus-item.is-current {
    grid-column: auto;
  }

  .rhythm-grid {
    grid-template-columns: repeat(7, 168px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(calc(100% - 20px), 640px);
    padding-top: 18px;
  }

  .topbar {
    display: grid;
    align-items: start;
    min-height: auto;
    padding-top: 12px;
    gap: 12px;
  }

  .topbar h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero-subtitle {
    display: none;
  }

  .topbar-actions {
    justify-content: start;
  }

  .date-chip,
  .ghost-button {
    padding: 8px 11px;
    font-size: 13px;
  }

  .planner-panel,
  .today-focus {
    padding: 16px;
  }

  .section-copy {
    font-size: 13px;
  }

  .planner-form textarea {
    min-height: 66px;
  }

  .mission-strip {
    grid-template-columns: repeat(7, 134px);
  }

  .planner-actions {
    display: grid;
  }

  .planner-actions p {
    display: none;
  }

  .planner-buttons,
  .focus-actions,
  .focus-reorder {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .planner-actions button {
    width: 100%;
  }

  .fold-panel > summary {
    align-items: start;
    display: grid;
  }

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

  .ability-map,
  .level-list {
    grid-template-columns: 1fr;
  }

  .focus-lens,
  .form-row {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 116px;
  }

  .harvest-hero,
  .day-close-hero {
    display: grid;
  }

  .harvest-hero > strong,
  .day-close-hero > strong {
    width: 82px;
  }
}

/* Refined action desk + cinematic end-of-day ritual. */
:root {
  --paper: hsl(44 52% 98%);
  --paper-soft: hsl(46 38% 96%);
  --ink: hsl(158 22% 15%);
  --ritual-ink: hsl(42 42% 96%);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

body {
  color: var(--ink);
  background: hsl(44 42% 96%);
}

body::before {
  opacity: 0.5;
  background-size: 72px 72px;
}

.side-rail {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 48% 98% / 0.9);
  box-shadow: 0 20px 48px hsl(34 24% 38% / 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rail-mark,
.brand-mark {
  border-color: hsl(155 18% 28% / 0.12);
  background: hsl(155 30% 78%);
  box-shadow: inset 0 0 0 5px hsl(43 74% 88% / 0.5);
}

.daily-command-board {
  gap: clamp(12px, 1.6vw, 18px);
  border-color: hsl(155 20% 30% / 0.12);
  padding: clamp(18px, 2.4vw, 30px);
  background: hsl(44 54% 98% / 0.96);
  box-shadow:
    0 24px 64px hsl(36 24% 42% / 0.1),
    inset 0 1px 0 hsl(0 0% 100% / 0.76);
}

.daily-board-head h2,
.day-close-hero h3,
.harvest-panel .section-heading h2,
.harvest-hero h3 {
  font-family: "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: 0;
}

.daily-board-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.daily-board-head > strong {
  min-width: 64px;
  min-height: 42px;
  border-radius: 8px;
  background: hsl(153 28% 92% / 0.82);
  font-size: 16px;
}

.daily-board-task,
.daily-board-empty {
  border-color: hsl(155 18% 28% / 0.11);
  padding: 12px 13px;
  background: hsl(44 50% 99% / 0.76);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.daily-board-task:hover {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 38%, hsl(155 18% 28% / 0.12));
  box-shadow: 0 8px 22px hsl(40 20% 38% / 0.08);
}

.daily-board-task.is-current {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 44%, hsl(155 18% 28% / 0.1));
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 28%, hsl(44 54% 99%));
}

.daily-board-task > span {
  border-radius: 8px;
}

.daily-add-capture,
.daily-done-capture {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(46 42% 97% / 0.72);
}

.daily-board-input button,
.daily-chore-form button,
.daily-done-form button {
  border-radius: 8px;
}

.daily-board-input button {
  border-color: hsl(157 28% 32% / 0.18);
  color: hsl(156 24% 15%);
  background: hsl(156 36% 76%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.daily-board-input input,
.daily-chore-form input,
.daily-done-form input {
  border-radius: 8px;
  background: hsl(44 58% 99% / 0.88);
}

.fold-panel {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 48% 98% / 0.82);
}

.insight-fold > summary strong {
  font-size: 0;
}

.insight-fold > summary strong::after {
  content: "展开";
  font-size: 12px;
}

.insight-fold[open] > summary strong::after {
  content: "收起";
}

.day-close-panel {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 54% 98% / 0.9);
}

.day-close-button {
  min-height: 50px;
  border-color: hsl(157 28% 25% / 0.2);
  border-radius: 8px;
  color: hsl(44 52% 97%);
  background: hsl(157 26% 23%);
  box-shadow: 0 10px 24px hsl(157 22% 18% / 0.14);
}

.day-close-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px hsl(157 22% 18% / 0.18);
}

.harvest-panel {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 78vh);
  display: grid;
  align-content: end;
  gap: clamp(22px, 4vw, 44px);
  scroll-margin-top: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 64px);
  color: var(--ritual-ink);
  background-image: url("assets/harvest-garden-v1.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px hsl(150 22% 10% / 0.24);
}

.harvest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  background: hsl(156 24% 9% / 0.4);
  pointer-events: none;
}

.harvest-panel .section-heading {
  max-width: 720px;
}

.harvest-panel .section-heading .eyebrow {
  color: hsl(42 72% 76%);
}

.harvest-panel .section-heading h2 {
  margin-top: 7px;
  color: var(--ritual-ink);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.harvest-summary {
  gap: 14px;
}

.harvest-hero,
.harvest-empty,
.harvest-panel .ability-jar-card,
.harvest-panel .harvest-dimension {
  border: 1px solid hsl(42 48% 96% / 0.22);
  background: hsl(156 22% 12% / 0.48);
  box-shadow: inset 0 1px 0 hsl(42 48% 98% / 0.14);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.harvest-hero {
  padding: clamp(18px, 3vw, 30px);
}

.harvest-hero h3,
.harvest-empty strong,
.harvest-panel .ability-jar-card strong,
.harvest-panel .harvest-dimension b {
  color: var(--ritual-ink);
}

.harvest-hero h3 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
}

.harvest-hero p,
.harvest-empty p,
.harvest-panel .ability-jar-card p,
.harvest-panel .ability-jar-card small,
.harvest-panel .harvest-dimension p {
  color: hsl(42 30% 91% / 0.86);
}

.harvest-hero > strong {
  border-color: hsl(42 52% 92% / 0.3);
  color: hsl(42 76% 76%);
  background: hsl(156 22% 8% / 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.harvest-ability-jars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.harvest-panel .ability-jar-card {
  min-height: 108px;
  padding: 14px;
}

.harvest-panel .jar-visual {
  background: hsl(42 44% 94% / 0.12);
  box-shadow:
    inset 0 0 0 3px hsl(42 48% 98% / 0.1),
    0 8px 20px color-mix(in srgb, var(--dimension-color) 22%, transparent);
}

.harvest-panel .jar-visual::before {
  background: hsl(42 44% 94% / 0.42);
}

.harvest-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.harvest-panel:not([hidden]) .section-heading,
.harvest-panel:not([hidden]) .harvest-hero,
.harvest-panel:not([hidden]) .harvest-empty,
.harvest-panel:not([hidden]) .ability-jar-card,
.harvest-panel:not([hidden]) .harvest-dimension {
  animation: ritualReveal 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.harvest-panel:not([hidden]) .harvest-hero,
.harvest-panel:not([hidden]) .harvest-empty {
  animation-delay: 90ms;
}

.harvest-panel:not([hidden]) .ability-jar-card:nth-child(1) { animation-delay: 160ms; }
.harvest-panel:not([hidden]) .ability-jar-card:nth-child(2) { animation-delay: 220ms; }
.harvest-panel:not([hidden]) .ability-jar-card:nth-child(3) { animation-delay: 280ms; }
.harvest-panel:not([hidden]) .harvest-dimension { animation-delay: 320ms; }

@keyframes ritualReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .daily-command-board {
    padding: 16px;
  }

  .daily-board-head h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .harvest-panel {
    min-height: 720px;
    padding: 24px 16px;
    background-position: 62% center;
  }

  .harvest-hero {
    display: grid;
  }

  .harvest-hero > strong {
    width: 72px;
  }

  .harvest-ability-jars {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .harvest-panel .ability-jar-card {
    flex: 0 0 230px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .harvest-panel:not([hidden]) .section-heading,
  .harvest-panel:not([hidden]) .harvest-hero,
  .harvest-panel:not([hidden]) .harvest-empty,
  .harvest-panel:not([hidden]) .ability-jar-card,
  .harvest-panel:not([hidden]) .harvest-dimension {
    animation: none;
  }

  .daily-board-task,
  .day-close-button {
    transition: none;
  }
}

/* UI flow refresh: soft action-first workspace + growth ritual preview */
:root {
  --background: hsl(44 52% 96%);
  --background-soft: hsl(42 58% 98%);
  --foreground: hsl(156 18% 17%);
  --muted: hsl(48 12% 43%);
  --muted-2: hsl(46 10% 58%);
  --panel: hsl(42 62% 98% / 0.94);
  --panel-strong: hsl(41 74% 99% / 0.98);
  --line: hsl(38 26% 34% / 0.12);
  --line-strong: hsl(36 24% 32% / 0.2);
  --gold: hsl(39 78% 61%);
  --green: hsl(154 33% 52%);
  --blue: hsl(206 46% 57%);
  --rose: hsl(348 58% 64%);
  --violet: hsl(270 34% 61%);
  --shadow: 0 16px 40px hsl(30 30% 45% / 0.12);
  color-scheme: light;
}

body {
  background:
    linear-gradient(180deg, hsl(47 62% 97%) 0%, hsl(39 50% 95%) 48%, hsl(154 24% 93%) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, hsl(34 24% 26% / 0.035) 1px, transparent 1px),
    linear-gradient(0deg, hsl(34 24% 26% / 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, black 0%, transparent 82%);
}

.app-layout {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.side-rail {
  position: sticky;
  top: 18px;
  min-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  padding: 18px 14px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  background: hsl(46 58% 98% / 0.78);
  box-shadow: var(--shadow);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.rail-mark,
.brand-mark {
  background:
    linear-gradient(135deg, hsl(43 78% 72%), hsl(151 34% 66%) 58%, hsl(348 58% 78%));
}

.rail-mark {
  width: 26px;
  height: 26px;
  border: 1px solid hsl(38 24% 32% / 0.16);
  border-radius: 8px;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-nav a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 860;
}

.rail-nav a:hover {
  color: var(--foreground);
  background: hsl(150 30% 90% / 0.72);
}

.side-rail p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.app-shell {
  width: 100%;
  padding: 24px 0 48px;
}

.topbar {
  min-height: 104px;
  align-items: center;
}

.brand-row {
  margin-bottom: 12px;
}

.brand-mark {
  border-color: hsl(38 24% 32% / 0.16);
}

.eyebrow {
  color: hsl(154 24% 37%);
  font-size: 12px;
  text-transform: none;
}

.topbar h1 {
  max-width: 660px;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 0.98;
  font-weight: 500;
}

.topbar h1 em {
  display: block;
  margin-top: -6px;
  font-size: 0.9em;
  color: hsl(348 52% 55%);
}

.goal-map-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

.goal-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid hsl(38 22% 32% / 0.14);
  border-radius: 8px;
  background: hsl(42 70% 99% / 0.74);
  box-shadow: 0 12px 30px hsl(30 30% 45% / 0.08);
}

.goal-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 12px;
  height: 1px;
  background: hsl(154 22% 38% / 0.28);
}

.goal-card span {
  color: hsl(154 24% 37%);
  font-size: 12px;
  font-weight: 900;
}

.goal-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.14;
}

.goal-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.goal-card.is-near {
  border-color: hsl(348 42% 58% / 0.28);
  background:
    linear-gradient(135deg, hsl(348 58% 97% / 0.86), hsl(42 70% 99% / 0.78));
}

.hero-subtitle {
  display: none;
}

.date-chip,
.ghost-button,
.add-task button {
  border-color: hsl(38 22% 32% / 0.16);
  background: hsl(42 70% 99% / 0.72);
  color: var(--foreground);
}

.ghost-button:hover {
  background: hsl(151 31% 91%);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.workbench-flow {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.liquid-glass,
.priority-panel,
.planner-panel,
.today-focus,
.growth-orbit-panel,
.evening-done-panel,
.evening-preview-panel,
.harvest-panel,
.evening-review,
.day-close-panel,
.task-panel,
.map-panel,
.dimension-panel,
.weekly-rhythm,
.fold-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.planner-panel {
  grid-template-columns: minmax(210px, 0.46fr) minmax(0, 1fr);
  margin-top: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, hsl(43 70% 99% / 0.98), hsl(43 54% 97% / 0.92));
}

.section-heading h2 {
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.08;
}

.section-copy {
  display: none;
}

.planner-form textarea,
.evening-done-form textarea,
.wrap-note-input,
.focus-form input,
.focus-form select,
.add-task input,
.add-task select {
  border: 1px solid hsl(38 22% 32% / 0.15);
  background: hsl(42 70% 99% / 0.86);
  color: var(--foreground);
}

.planner-form textarea {
  min-height: 82px;
  border-radius: 8px;
  padding: 14px;
}

.planner-form textarea::placeholder,
.evening-done-form textarea::placeholder,
.wrap-note-input::placeholder,
.add-task input::placeholder,
.focus-form input::placeholder {
  color: hsl(48 10% 50%);
}

.planner-actions p,
.planner-message p,
.harvest-hero p,
.harvest-empty p,
.day-close-hero p,
.day-close-empty p,
.day-close-card p,
.day-close-notes p,
.review-item p,
.review-empty p,
.task-benefit,
.task-growth,
.task-details p {
  color: var(--muted);
}

#plannerStatus,
.focus-progress,
.focus-copy small,
.fold-panel > summary small,
.decision-card small,
.task-details,
.task-growth,
.ritual-note,
.evening-preview-panel p:not(.eyebrow) {
  display: none !important;
}

.planner-panel.is-thinking #plannerStatus {
  display: block !important;
  margin: 0;
  color: hsl(154 24% 34%);
  font-size: 13px;
  font-weight: 850;
}

.planner-actions button,
.day-close-button {
  border-color: hsl(39 72% 55%);
  background: hsl(40 84% 67%);
  color: hsl(156 18% 15%);
}

.planner-actions button.secondary {
  border-color: hsl(38 22% 32% / 0.16);
  background: hsl(43 60% 98% / 0.74);
  color: var(--foreground);
}

.quick-task-capture {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: -4px;
}

.quick-task-capture input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid hsl(38 22% 32% / 0.14);
  border-radius: 999px;
  padding: 0 14px;
  background: hsl(42 70% 99% / 0.78);
  color: var(--foreground);
  outline: none;
}

.quick-task-capture input::placeholder {
  color: hsl(48 10% 50%);
}

.quick-task-capture input:focus-visible {
  border-color: hsl(160 34% 54% / 0.62);
  box-shadow: 0 0 0 3px hsl(160 34% 54% / 0.13);
}

.quick-task-capture button {
  min-height: 40px;
  border: 1px solid hsl(160 34% 48% / 0.42);
  border-radius: 999px;
  padding: 0 16px;
  background: hsl(160 45% 72% / 0.92);
  color: hsl(156 18% 15%);
  font-weight: 900;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.quick-task-capture button:hover {
  transform: translateY(-1px);
  background: hsl(160 50% 76% / 0.96);
}

.planner-thread {
  background: hsl(42 52% 96% / 0.72);
}

.planner-message,
.priority-summary article,
.priority-card,
.day-close-card,
.day-close-notes article,
.review-item,
.review-empty,
.task-item,
.decision-card,
.harvest-dimension {
  background: hsl(42 70% 99% / 0.74);
}

.prompt-chips button {
  color: var(--foreground);
  background: hsl(42 70% 99% / 0.74);
}

.prompt-chips button:hover {
  background: hsl(151 31% 91%);
}

.today-focus {
  margin-top: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, hsl(42 70% 99% / 0.98), hsl(42 54% 97% / 0.92));
}

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

.focus-item {
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 15px;
  border-color: color-mix(in srgb, var(--dimension-color) 32%, hsl(38 22% 32% / 0.14));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dimension-bg) 42%, transparent), hsl(42 72% 99% / 0.84) 42%),
    hsl(42 70% 99% / 0.86);
}

.focus-item.is-current {
  border-color: color-mix(in srgb, var(--dimension-color) 58%, hsl(38 22% 32% / 0.16));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dimension-bg) 62%, transparent), hsl(42 72% 99% / 0.92) 46%),
    hsl(42 70% 99% / 0.92);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--dimension-color) 14%, transparent);
}

.focus-item.is-done {
  background: color-mix(in srgb, var(--dimension-bg) 24%, hsl(42 70% 99% / 0.9));
}

.focus-copy h3 {
  color: var(--foreground);
  font-size: 19px;
  line-height: 1.22;
}

.focus-item.is-current .focus-copy h3 {
  font-size: 20px;
}

.focus-index {
  border-color: color-mix(in srgb, var(--dimension-color) 60%, hsl(38 22% 32% / 0.16));
  background: hsl(42 70% 99% / 0.72);
}

.focus-next,
.progress-control,
.settlement-note {
  color: var(--foreground);
  background: hsl(42 70% 99% / 0.68);
  border-color: hsl(38 22% 32% / 0.12);
}

.focus-next {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.progress-control {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.progress-head {
  justify-content: flex-end;
  min-height: 18px;
  color: var(--muted);
}

.progress-label {
  display: none;
}

.progress-range {
  height: 22px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.progress-range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--dimension-color) 0 var(--progress), hsl(38 22% 32% / 0.12) var(--progress) 100%);
}

.progress-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
  border: 2px solid hsl(42 70% 99%);
  border-radius: 999px;
  background: var(--dimension-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dimension-color) 14%, transparent);
  -webkit-appearance: none;
  appearance: none;
}

.progress-range::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: hsl(38 22% 32% / 0.12);
}

.progress-range::-moz-range-progress {
  height: 7px;
  border-radius: 999px;
  background: var(--dimension-color);
}

.progress-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid hsl(42 70% 99%);
  border-radius: 999px;
  background: var(--dimension-color);
}

.map-chip {
  min-width: 78px;
  min-height: 32px;
  display: inline-grid;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--cell-color, var(--dimension-color)) 52%, hsl(38 22% 32% / 0.16));
  background: hsl(42 76% 99% / 0.9);
  box-shadow:
    inset 0 0 0 1px hsl(0 0% 100% / 0.38),
    inset 0 -10px 0 color-mix(in srgb, var(--cell-color, var(--dimension-color)) 13%, transparent);
}

.map-chip::before {
  content: none;
}

.map-chip i {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(max(var(--strength), 0.18) * 100%);
  background: color-mix(in srgb, var(--cell-color, var(--dimension-color)) 72%, hsl(42 76% 99% / 0.18));
  opacity: 0.9;
}

.map-chip b,
.map-chip.is-active b {
  position: relative;
  z-index: 2;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 5px 10px;
  color: hsl(156 18% 16%);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 0 hsl(42 70% 99% / 0.72);
}

.map-chip.is-active {
  background: color-mix(in srgb, var(--cell-color) 9%, hsl(42 76% 99% / 0.96));
}

.map-chip.is-active::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 2px 2px auto;
  height: 12px;
  border-radius: 6px 6px 999px 999px;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.62), hsl(0 0% 100% / 0));
  pointer-events: none;
}

.map-chip.is-empty::before {
  content: none;
}

.focus-actions button,
.task-actions button,
.decision-actions button,
.focus-form button {
  min-height: 34px;
  border-color: hsl(38 22% 32% / 0.18);
  background: hsl(42 70% 99% / 0.72);
  color: var(--foreground);
}

.focus-actions .focus-settle {
  border-color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-color) 76%, hsl(42 70% 99%));
  color: hsl(156 18% 14%);
}

.focus-more-actions[open] {
  background: hsl(42 70% 99% / 0.96);
}

.growth-orbit-panel {
  position: sticky;
  top: 18px;
  min-height: 560px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, hsl(44 72% 99% / 0.95), hsl(154 30% 94% / 0.9));
}

.orbit-stage {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.orbit-shadow {
  position: absolute;
  width: min(78%, 260px);
  height: 42px;
  bottom: 34px;
  border-radius: 50%;
  background: hsl(154 20% 40% / 0.11);
  filter: blur(8px);
}

.orbit-ring {
  position: absolute;
  width: min(82%, 294px);
  aspect-ratio: 1;
  border: 1px solid hsl(154 26% 38% / 0.22);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-ring-one {
  transform: rotateX(66deg) rotateZ(-14deg);
}

.orbit-ring-two {
  width: min(68%, 238px);
  border-color: hsl(348 42% 58% / 0.18);
  transform: rotateX(68deg) rotateZ(30deg);
}

.growth-vessel {
  position: relative;
  width: min(72%, 254px);
  height: 170px;
  display: grid;
  place-items: center;
  transform: rotateX(58deg) rotateZ(-8deg);
  transform-style: preserve-3d;
}

.growth-vessel::before,
.growth-vessel::after {
  content: "";
  position: absolute;
  inset: 18px 8px;
  border-radius: 50%;
  border: 1px solid hsl(154 26% 38% / 0.18);
  background:
    linear-gradient(90deg, hsl(154 30% 76% / 0.42), hsl(348 54% 82% / 0.44), hsl(43 82% 78% / 0.42));
  box-shadow: inset 0 1px 12px hsl(0 0% 100% / 0.62);
}

.growth-vessel::after {
  inset: 42px 20px;
  transform: translateZ(46px);
  background: hsl(42 90% 99% / 0.58);
}

.vessel-band {
  position: absolute;
  width: 76%;
  height: 42px;
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: 0 8px 18px hsl(30 28% 42% / 0.1);
}

.band-sage {
  background: hsl(154 38% 69% / 0.58);
  transform: translateZ(16px) rotateZ(2deg);
}

.band-rose {
  background: hsl(348 62% 76% / 0.5);
  transform: translateZ(40px) rotateZ(-18deg);
}

.band-gold {
  background: hsl(43 84% 72% / 0.48);
  transform: translateZ(64px) rotateZ(18deg);
}

.vessel-core {
  position: absolute;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, hsl(42 90% 98% / 0.9), hsl(154 36% 80% / 0.55));
  transform: translateZ(92px);
  box-shadow: 0 10px 28px hsl(154 24% 42% / 0.18);
}

.orbit-label {
  position: absolute;
  min-width: 48px;
  border: 1px solid hsl(38 22% 32% / 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: hsl(42 90% 99% / 0.78);
  color: hsl(154 24% 34%);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.label-top {
  top: 24px;
}

.label-left {
  left: 10px;
  bottom: 124px;
}

.label-right {
  right: 10px;
  bottom: 108px;
}

.ritual-note {
  padding: 14px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  background: hsl(42 86% 99% / 0.72);
}

.ritual-note strong {
  display: block;
  color: var(--foreground);
  margin-bottom: 6px;
}

.ritual-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.evening-preview-panel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(90deg, hsl(43 72% 99% / 0.94), hsl(348 58% 96% / 0.78));
}

.evening-preview-panel h2 {
  margin: 0;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.evening-preview-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.diary-lines {
  display: grid;
  gap: 12px;
}

.diary-lines span {
  height: 12px;
  border-radius: 999px;
  background: hsl(154 28% 48% / 0.14);
}

.diary-lines span:nth-child(2) {
  width: 82%;
  background: hsl(348 52% 58% / 0.14);
}

.diary-lines span:nth-child(3) {
  width: 62%;
  background: hsl(43 78% 58% / 0.2);
}

.fold-panel {
  background: hsl(42 72% 99% / 0.74);
}

.fold-panel > summary b,
.review-item strong,
.review-empty strong,
.day-close-notes strong,
.day-close-empty strong,
.harvest-empty strong,
.day-close-hero h3,
.harvest-hero h3 {
  color: var(--foreground);
}

.fold-panel > summary strong {
  color: hsl(154 24% 34%);
  background: hsl(151 31% 91% / 0.78);
}

.fold-panel > summary {
  min-height: 52px;
  padding: 12px 16px;
}

.task-panel,
.decision-inbox,
.map-panel,
.dimension-panel {
  background: hsl(42 70% 99% / 0.8);
}

.insight-grid {
  gap: 14px;
}

.score-ring .ring-track {
  stroke: hsl(38 22% 32% / 0.13);
}

.weekly-rhythm {
  background: hsl(42 70% 99% / 0.8);
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    min-height: auto;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .rail-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
  }

  .side-rail p {
    grid-column: 1 / -1;
  }

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

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

  .goal-card:not(:last-child)::after {
    display: none;
  }

  .growth-orbit-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .app-layout {
    width: min(calc(100% - 20px), 640px);
    gap: 12px;
  }

  .side-rail {
    padding: 12px;
  }

  .rail-brand span:last-child,
  .side-rail p {
    display: none;
  }

  .rail-nav {
    justify-content: start;
    gap: 4px;
  }

  .rail-nav a {
    min-height: 32px;
    padding: 0 9px;
  }

  .topbar h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .title-block {
    min-width: 0;
    width: 100%;
  }

  .topbar h1 em {
    margin-top: -2px;
    font-size: 0.96em;
  }

  .planner-panel,
  .today-focus,
  .growth-orbit-panel,
  .evening-done-panel,
  .evening-preview-panel {
    padding: 14px;
  }

  .planner-panel,
  .evening-done-form,
  .evening-preview-panel {
    grid-template-columns: 1fr;
  }

  .quick-task-capture {
    grid-column: auto;
    margin-top: 0;
  }

  .recommendation-settings {
    grid-column: auto;
  }

  .recommendation-settings .priority-list {
    grid-template-columns: 1fr;
  }

  .goal-map-panel {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .goal-card {
    flex: 0 0 150px;
    min-height: 118px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .goal-card:not(:last-child)::after {
    display: block;
    right: -9px;
    width: 8px;
  }

  .goal-card strong {
    font-size: 16px;
  }

  .goal-card small {
    font-size: 11px;
  }

  .focus-item {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 13px;
  }

  .focus-actions,
  .planner-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .planner-form textarea {
    min-height: 78px;
    padding: 12px;
  }

  .planner-actions button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .orbit-stage {
    min-height: 270px;
  }
}

/* ADHD-first action layer: keep the system powerful, but make the first read lightweight. */
.topbar {
  align-items: start;
  min-height: auto;
}

.title-block {
  display: grid;
  gap: 10px;
}

.mainline-panel {
  max-width: 780px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.mainline-panel p {
  margin: 0;
}

.mainline-panel h1 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mainline-panel p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mainline-panel #mainlineContext {
  color: hsl(154 24% 36%);
  font-size: 13px;
  font-weight: 900;
}

.mainline-panel .hero-subtitle {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  background: hsl(42 70% 99% / 0.74);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.goal-map-drawer {
  width: min(100%, 900px);
}

.goal-map-drawer summary {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 11px;
  color: hsl(154 24% 35%);
  background: hsl(42 70% 99% / 0.64);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.goal-map-drawer summary::-webkit-details-marker {
  display: none;
}

.goal-map-drawer .goal-map-panel {
  margin-top: 10px;
}

.goal-map-drawer:not([open]) .goal-map-panel {
  display: none;
}

.goal-card {
  min-height: 92px;
}

.planner-panel {
  align-items: start;
}

.planner-panel .section-heading h2,
.today-focus .section-heading h2 {
  font-size: clamp(24px, 2vw, 28px);
}

.planner-form textarea {
  min-height: 74px;
}

.focus-impact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 7px 0 8px;
}

.focus-impact-line span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 32%, hsl(38 22% 32% / 0.13));
  border-radius: 999px;
  padding: 0 10px;
  color: hsl(156 18% 16%);
  background: color-mix(in srgb, var(--dimension-bg) 42%, hsl(42 78% 99% / 0.86));
  font-size: 12px;
  font-weight: 930;
  line-height: 1;
}

.focus-strategy-pill {
  background: hsl(153 42% 74% / 0.34) !important;
}

.focus-outcome-pill {
  background: hsl(43 84% 72% / 0.32) !important;
}

.focus-item {
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.focus-item:not(.is-current):not(.is-settled) {
  opacity: 0.82;
}

.focus-item:not(.is-current):not(.is-settled) .focus-next,
.focus-item:not(.is-current):not(.is-settled) .wrap-note-input,
.focus-item:not(.is-current):not(.is-settled) .focus-actions {
  display: none;
}

.focus-item:not(.is-current):not(.is-settled) .progress-control {
  margin-top: 8px;
}

.focus-item:not(.is-current):not(.is-settled) .progress-head {
  display: none;
}

.focus-item:not(.is-current):not(.is-settled) .focus-map-strip {
  margin-bottom: 4px;
}

.focus-item.is-current {
  transform: translateY(-1px);
}

.focus-item.is-current h3::before {
  content: "现在";
  display: inline-flex;
  margin-right: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  color: hsl(156 18% 15%);
  background: color-mix(in srgb, var(--dimension-color) 72%, hsl(42 80% 96%));
  font-size: 12px;
  font-family: Inter, "Avenir Next", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  vertical-align: 3px;
}

.focus-next {
  font-size: 14px;
  font-weight: 900;
}

.day-close-panel {
  border-color: hsl(348 42% 58% / 0.22);
  background: linear-gradient(135deg, hsl(42 74% 99% / 0.95), hsl(348 58% 97% / 0.82));
}

.day-close-hero {
  align-items: center;
}

.day-close-hero h3 {
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
}

.day-close-hero p {
  max-width: 720px;
  color: hsl(156 12% 29%);
  font-size: 15px;
  font-weight: 760;
}

.day-close-hero > strong {
  border-color: color-mix(in srgb, var(--dimension-color) 42%, hsl(38 22% 32% / 0.12));
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 64%, hsl(42 86% 99% / 0.9));
}

.day-close-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.day-close-dimensions span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 38%, hsl(38 22% 32% / 0.12));
  border-radius: 999px;
  padding: 0 11px;
  color: hsl(156 18% 16%);
  background: color-mix(in srgb, var(--dimension-bg) 44%, hsl(42 80% 99% / 0.8));
  font-size: 13px;
  font-weight: 920;
}

.day-close-notes {
  margin-top: 12px;
}

.day-close-notes article {
  border-color: hsl(38 22% 32% / 0.12);
}

.insight-fold,
.weekly-rhythm {
  max-width: 100%;
  overflow: hidden;
}

.rhythm-grid {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-layout,
.app-shell,
.side-rail,
.topbar,
.workbench-grid,
.workbench-flow,
.planner-panel,
.today-focus,
.growth-orbit-panel,
.week-status-panel,
.evening-done-panel,
.evening-preview-panel,
.fold-panel {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .app-layout {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .mainline-panel h1 {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.05;
  }

  .mainline-panel .hero-subtitle {
    display: flex;
    width: 100%;
    border-radius: 8px;
  }

  .goal-map-drawer[open] .goal-map-panel {
    display: flex;
  }

  .focus-impact-line span {
    max-width: 100%;
  }

  .focus-item:not(.is-current):not(.is-settled) .map-chip:nth-child(n + 3) {
    display: none;
  }

  .day-close-dimensions {
    gap: 6px;
  }

  .rhythm-grid {
    display: flex;
    grid-template-columns: none;
  }

  .rhythm-day {
    flex: 0 0 168px;
  }
}

/* Strategy cockpit: compress a dense half-year plan into a calm action map. */
.strategy-board {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
  min-width: 0;
}

.strategy-detail-board {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  min-width: 0;
}

.strategy-footer {
  order: 2;
}

.strategy-grid {
  order: 3;
}

.plan-library {
  order: 4;
}

.strategy-hero,
.strategy-grid,
.strategy-footer {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.strategy-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.strategy-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
}

.strategy-footer {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
}

.north-star-panel,
.sprint-panel,
.week-status-panel,
.engine-panel,
.ladder-panel,
.action-advice-panel,
.rule-panel,
.plan-library {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 72% 99% / 0.78);
  box-shadow: var(--shadow);
}

.north-star-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(circle at 12% 18%, hsl(154 36% 78% / 0.38), transparent 34%),
    radial-gradient(circle at 92% 18%, hsl(348 62% 82% / 0.28), transparent 30%),
    linear-gradient(135deg, hsl(42 78% 99% / 0.94), hsl(43 60% 97% / 0.82));
}

.north-star-panel h2,
.sprint-panel h2 {
  margin: 0;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.north-star-panel h2 {
  max-width: 820px;
  font-size: clamp(29px, 3.5vw, 48px);
  line-height: 1;
  text-wrap: balance;
}

.north-star-panel p:not(.eyebrow),
.sprint-panel p {
  margin: 0;
  color: hsl(156 13% 30%);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.62;
}

.north-star-panel p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flywheel-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  overscroll-behavior-x: contain;
}

.flywheel-strip span {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid hsl(154 24% 38% / 0.14);
  border-radius: 999px;
  padding: 0 11px 0 7px;
  color: hsl(156 18% 17%);
  background: hsl(154 34% 92% / 0.72);
  font-size: 13px;
  font-weight: 900;
}

.flywheel-strip b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: hsl(42 80% 99% / 0.9);
  color: hsl(154 24% 34%);
  font-size: 11px;
}

.sprint-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-color: hsl(39 78% 61% / 0.28);
  background:
    linear-gradient(180deg, hsl(43 84% 74% / 0.24), hsl(42 72% 99% / 0.84)),
    hsl(42 72% 99% / 0.86);
}

.sprint-panel h2 {
  font-size: clamp(23px, 2.1vw, 32px);
  line-height: 1.05;
}

.sprint-output-list,
#strategyRules,
.daily-formula,
.sprint-day-list,
.review-question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sprint-output-list span,
#strategyRules span,
.daily-formula span,
.sprint-day-list span,
.review-question-list span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: hsl(156 18% 17%);
  background: hsl(42 78% 99% / 0.76);
  font-size: 12px;
  font-weight: 900;
}

.week-status-panel {
  display: grid;
  gap: 11px;
  padding: 16px;
  background:
    linear-gradient(90deg, hsl(154 34% 92% / 0.68), hsl(42 78% 99% / 0.88) 52%, hsl(348 62% 94% / 0.52)),
    hsl(42 72% 99% / 0.82);
}

.week-status-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.week-status-main h2 {
  margin: 2px 0 0;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.08;
}

.week-status-main strong {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid hsl(154 24% 38% / 0.18);
  border-radius: 999px;
  color: hsl(154 24% 28%);
  background: hsl(42 80% 99% / 0.82);
  font-size: 18px;
  font-weight: 950;
}

.week-progress-line {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(38 22% 32% / 0.12);
}

.week-progress-line span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, hsl(160 44% 56%), hsl(39 78% 61%));
}

.week-status-grid {
  display: grid;
  grid-template-columns: 0.45fr 1.1fr 0.45fr;
  gap: 8px;
}

.week-status-grid article {
  min-width: 0;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 8px;
  padding: 10px 11px;
  background: hsl(42 78% 99% / 0.7);
}

.week-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.week-status-grid b {
  display: block;
  margin-top: 4px;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.25;
}

.week-output-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.week-output-row span,
.week-output-row small {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(154 24% 38% / 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: hsl(156 18% 17%);
  background: hsl(42 78% 99% / 0.72);
  font-size: 12px;
  font-weight: 900;
}

.week-output-row small {
  color: hsl(154 24% 30%);
  background: hsl(154 34% 92% / 0.72);
}

.engine-panel,
.ladder-panel,
.action-advice-panel,
.rule-panel {
  padding: 16px;
}

.compact-heading {
  margin-bottom: 12px;
}

.compact-heading h2 {
  font-size: clamp(20px, 1.7vw, 25px);
}

.engine-grid {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
  overscroll-behavior-x: contain;
}

.engine-card {
  flex: 1 0 188px;
  min-width: 0;
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  padding: 13px;
  background: hsl(42 76% 99% / 0.76);
}

.engine-card span,
.engine-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.35;
}

.engine-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.12;
}

.engine-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: hsl(156 13% 29%);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.engine-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.engine-card.accent-violet {
  background: linear-gradient(180deg, hsl(261 52% 70% / 0.2), hsl(42 76% 99% / 0.78));
}

.engine-card.accent-rose {
  background: linear-gradient(180deg, hsl(346 68% 66% / 0.18), hsl(42 76% 99% / 0.78));
}

.engine-card.accent-gold {
  background: linear-gradient(180deg, hsl(39 78% 61% / 0.22), hsl(42 76% 99% / 0.78));
}

.engine-card.accent-blue {
  background: linear-gradient(180deg, hsl(206 46% 57% / 0.18), hsl(42 76% 99% / 0.78));
}

.milestone-ladder {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  overscroll-behavior-x: contain;
}

.milestone-ladder article {
  position: relative;
  flex: 1 0 170px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 10px;
  min-height: 108px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  padding: 10px;
  background: hsl(42 76% 99% / 0.72);
}

.milestone-ladder article::before {
  content: none;
  position: absolute;
  left: 35px;
  top: -9px;
  bottom: calc(100% - 1px);
  width: 1px;
  background: hsl(154 24% 38% / 0.2);
}

.milestone-ladder article:first-child::before {
  content: none;
}

.milestone-ladder span {
  align-self: start;
  justify-self: start;
  min-width: 44px;
  border-radius: 999px;
  padding: 6px 7px;
  color: hsl(154 24% 34%);
  background: hsl(154 34% 92% / 0.72);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.milestone-ladder strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.22;
}

.milestone-ladder small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.milestone-ladder .is-now {
  border-color: hsl(348 52% 64% / 0.24);
  background: hsl(348 58% 96% / 0.58);
}

.action-advice-panel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-advice-panel li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: hsl(42 76% 99% / 0.7);
}

.action-advice-panel b {
  color: hsl(154 24% 34%);
  font-size: 13px;
}

.action-advice-panel span {
  min-width: 0;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 900;
}

.rule-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rule-panel .eyebrow,
.action-advice-panel .eyebrow {
  margin-bottom: 0;
}

.plan-library {
  overflow: hidden;
  background: hsl(42 72% 99% / 0.62);
}

.plan-library summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: hsl(154 24% 34%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
}

.plan-library summary::-webkit-details-marker {
  display: none;
}

.plan-library summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: hsl(154 34% 92% / 0.78);
}

.plan-library[open] summary::after {
  content: "-";
}

.plan-library-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.daily-formula span b,
.sprint-day-list span b {
  margin-right: 6px;
  color: hsl(154 24% 34%);
}

.growth-orbit-panel {
  min-height: auto;
}

.ability-jars {
  display: grid;
  gap: 10px;
}

.ability-jar-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 36%, hsl(38 22% 32% / 0.12));
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dimension-bg) 46%, transparent), hsl(42 78% 99% / 0.8)),
    hsl(42 78% 99% / 0.82);
}

.jar-visual {
  position: relative;
  width: 46px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 68%, hsl(38 22% 32% / 0.14));
  border-radius: 15px 15px 11px 11px;
  overflow: hidden;
  background: hsl(42 82% 99% / 0.74);
  box-shadow:
    inset 0 0 0 3px hsl(0 0% 100% / 0.28),
    0 8px 16px color-mix(in srgb, var(--dimension-color) 15%, transparent);
}

.jar-visual::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: -1px;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--dimension-color) 64%, hsl(38 22% 32% / 0.14));
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
  background: hsl(42 90% 99% / 0.94);
}

.jar-visual span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dimension-color) 54%, hsl(42 90% 99% / 0.32)), var(--dimension-color));
  opacity: 0.72;
}

.ability-jar-card strong {
  display: block;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.1;
}

.ability-jar-card p,
.ability-jar-card small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .strategy-hero,
  .strategy-grid,
  .strategy-footer,
  .plan-library-grid {
    grid-template-columns: 1fr;
  }

  .engine-grid {
    display: flex;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .topbar,
  .title-block,
  .brand-row,
  .mainline-panel,
  .goal-map-drawer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: hidden;
  }

  .topbar-actions {
    justify-content: start;
  }

  .strategy-board {
    margin-top: 4px;
  }

  .north-star-panel,
  .sprint-panel,
  .week-status-panel,
  .engine-panel,
  .ladder-panel,
  .action-advice-panel,
  .rule-panel {
    padding: 13px;
  }

  .north-star-panel h2 {
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.03;
  }

  .north-star-panel p:not(.eyebrow),
  .sprint-panel p {
    font-size: 13px;
  }

  .week-status-main {
    display: grid;
  }

  .week-status-main strong {
    min-width: auto;
    width: fit-content;
    min-height: 38px;
    padding: 0 15px;
    font-size: 16px;
  }

  .week-status-grid {
    grid-template-columns: 1fr;
  }

  .flywheel-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .flywheel-strip span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .engine-grid {
    display: flex;
    overflow-x: auto;
  }

  .engine-card {
    flex: 0 0 220px;
    min-height: 132px;
  }

  .action-advice-panel li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .milestone-ladder article {
    flex: 0 0 178px;
    grid-template-columns: 1fr;
  }

  .plan-library-grid {
    padding: 12px;
  }
}

.daily-command-board,
.today-summary-panel,
.strategy-timeline-drawer {
  min-width: 0;
  max-width: 100%;
}

.daily-command-board {
  display: grid;
  gap: 12px;
  margin: 4px 0 10px;
  border: 1px solid hsl(154 24% 38% / 0.16);
  border-radius: 10px;
  padding: clamp(16px, 2vw, 22px);
  background:
    radial-gradient(circle at 8% 10%, hsl(154 36% 78% / 0.34), transparent 31%),
    linear-gradient(135deg, hsl(42 78% 99% / 0.96), hsl(43 62% 97% / 0.86));
  box-shadow: var(--shadow);
}

@media (min-width: 1120px) {
  .daily-command-board {
    padding-right: clamp(24px, 6vw, 96px);
  }
}

.daily-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.daily-board-head h2 {
  margin: 2px 0 0;
  color: var(--foreground);
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.02;
}

.daily-board-head > strong {
  min-width: 72px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid hsl(154 24% 38% / 0.18);
  border-radius: 999px;
  color: hsl(154 24% 28%);
  background: hsl(42 80% 99% / 0.8);
  font-size: 18px;
  font-weight: 950;
}

.daily-board-list {
  display: grid;
  gap: 8px;
}

.daily-board-overflow {
  min-width: 0;
}

.daily-board-overflow > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  border: 1px solid hsl(154 22% 38% / 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  color: hsl(154 20% 30%);
  background: hsl(154 26% 94% / 0.58);
  cursor: pointer;
}

.daily-board-overflow > summary::-webkit-details-marker {
  display: none;
}

.daily-board-overflow > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.daily-board-overflow[open] > summary::after {
  content: "-";
}

.daily-board-overflow > summary strong {
  font-size: 14px;
}

.daily-board-overflow > summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-board-overflow-list {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.daily-board-task.is-secondary:not(.is-current) {
  background: hsl(42 78% 99% / 0.52);
}

.daily-board-task,
.daily-board-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 28%, hsl(38 22% 32% / 0.12));
  border-radius: 8px;
  padding: 10px;
  background: hsl(42 78% 99% / 0.72);
}

.daily-board-task.is-current {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 58%, hsl(38 22% 32% / 0.12));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 68%, transparent), hsl(42 78% 99% / 0.86));
}

.daily-board-task > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: hsl(42 78% 99%);
  background: var(--dimension-color, hsl(154 36% 54%));
  font-weight: 950;
}

.daily-board-task strong,
.daily-board-empty strong {
  display: block;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.daily-board-task small,
.daily-board-empty span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}

.daily-board-task b {
  color: var(--dimension-color, hsl(154 36% 44%));
  font-size: 16px;
  font-weight: 950;
}

.daily-board-empty {
  grid-template-columns: 1fr;
}

.daily-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 12px;
  align-items: stretch;
  transition: grid-template-columns 180ms ease;
}

.daily-entry-grid:has(.daily-done-capture[open]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-done-capture,
.daily-add-capture {
  display: grid;
  gap: 9px;
  border: 1px solid hsl(160 34% 48% / 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, hsl(154 34% 92% / 0.48), hsl(42 78% 99% / 0.7));
}

.daily-done-capture:not([open]) {
  align-self: start;
}

.daily-done-capture[open] {
  align-self: stretch;
}

.daily-add-capture {
  align-content: start;
}

.daily-add-capture > strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.daily-done-capture > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.daily-done-capture > summary::-webkit-details-marker {
  display: none;
}

.daily-done-capture > summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  color: hsl(154 34% 36%);
  background: hsl(160 34% 90% / 0.82);
  font-size: 17px;
  font-weight: 900;
}

.daily-done-capture[open] > summary::after {
  content: "−";
}

.daily-done-content {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.daily-done-capture strong {
  color: hsl(154 24% 24%);
  font-size: 14px;
  font-weight: 950;
}

.daily-done-capture > summary span,
.daily-done-content > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.daily-done-capture > summary span {
  margin-left: auto;
  white-space: nowrap;
}

.daily-chore-capture {
  display: grid;
  gap: 7px;
  border-top: 1px solid hsl(160 24% 42% / 0.12);
  padding-top: 9px;
}

.daily-chore-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.daily-chore-form input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--foreground);
  background: hsl(42 80% 99% / 0.68);
  outline: none;
}

.daily-chore-form input:focus {
  border-color: hsl(160 34% 48% / 0.32);
  box-shadow: 0 0 0 3px hsl(160 34% 48% / 0.08);
}

.daily-chore-form button {
  min-height: 36px;
  border: 1px solid hsl(160 28% 44% / 0.2);
  border-radius: 999px;
  padding: 0 14px;
  color: hsl(154 24% 26%);
  background: hsl(160 30% 91% / 0.86);
  font-weight: 900;
}

.daily-chore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-chore-item {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 8px;
  padding: 6px 7px;
  background: hsl(42 80% 99% / 0.68);
}

.daily-chore-item input {
  width: 16px;
  height: 16px;
  accent-color: hsl(160 42% 46%);
}

.daily-chore-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 820;
}

.daily-chore-item button {
  border: 0;
  padding: 0 3px;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  line-height: 1;
}

.daily-chore-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.daily-done-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.daily-done-form input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--foreground);
  background: hsl(42 80% 99% / 0.8);
  outline: none;
}

.daily-done-form input:focus {
  border-color: hsl(160 34% 48% / 0.32);
  box-shadow: 0 0 0 3px hsl(160 34% 48% / 0.1);
}

.daily-done-form button {
  min-height: 38px;
  border: 1px solid hsl(160 34% 48% / 0.36);
  border-radius: 999px;
  padding: 0 15px;
  color: hsl(154 24% 18%);
  background: hsl(160 45% 72% / 0.88);
  font-weight: 950;
}

.daily-done-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.daily-done-empty {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}

.daily-done-chip {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--dimension-color, hsl(160 44% 56%)) 36%, hsl(38 22% 32% / 0.12));
  border-radius: 999px;
  padding: 5px 7px 5px 9px;
  background: color-mix(in srgb, var(--dimension-bg, hsl(160 44% 56% / 0.18)) 66%, hsl(42 80% 99% / 0.72));
}

.daily-done-chip span {
  color: var(--dimension-color, hsl(160 44% 44%));
  white-space: nowrap;
}

.daily-done-chip strong {
  min-width: 0;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-done-chip button {
  border: 0;
  padding: 0 4px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.daily-board-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.daily-board-input input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid hsl(38 22% 32% / 0.14);
  border-radius: 999px;
  padding: 0 15px;
  background: hsl(42 78% 99% / 0.82);
  color: var(--foreground);
  outline: none;
}

.daily-board-input button {
  min-height: 42px;
  border: 1px solid hsl(160 34% 48% / 0.42);
  border-radius: 999px;
  padding: 0 18px;
  background: hsl(160 45% 72% / 0.94);
  color: hsl(156 18% 15%);
  font-weight: 950;
}

.daily-board-input button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.daily-command-board.is-thinking .daily-board-input button {
  animation: softPulse 1.2s ease-in-out infinite;
}

.daily-board-status {
  min-height: 18px;
  margin: 2px 2px 0;
  color: hsl(154 24% 34%);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.4;
}

.daily-board-status.is-error {
  color: hsl(346 58% 46%);
}

.daily-board-status.is-success {
  color: hsl(160 44% 36%);
}

.reusable-module-picker {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.reusable-module-picker[hidden] {
  display: none;
}

.reusable-module-picker > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.reusable-module-list {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.reusable-module-list button {
  min-width: 0;
  max-width: 180px;
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border: 1px solid hsl(160 34% 48% / 0.22);
  border-radius: 8px;
  padding: 5px 9px 5px 6px;
  color: hsl(154 24% 24%);
  background: hsl(154 34% 94% / 0.72);
  text-align: left;
}

.reusable-module-list button:hover {
  border-color: hsl(160 34% 48% / 0.42);
  background: hsl(154 34% 91% / 0.9);
  transform: none;
}

.reusable-module-list button > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: hsl(42 80% 99%);
  background: hsl(160 38% 52%);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.reusable-module-list button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-history-panel {
  border-top: 1px solid hsl(38 22% 32% / 0.1);
  padding-top: 8px;
}

.completed-history-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 2px;
  color: hsl(154 24% 30%);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
}

.completed-history-panel > summary::-webkit-details-marker {
  display: none;
}

.completed-history-panel > summary b {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: hsl(154 24% 30%);
  background: hsl(154 34% 92% / 0.82);
  font-size: 11px;
}

.completed-history-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding: 6px 2px 2px;
}

.completed-history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background: hsl(42 80% 99% / 0.68);
}

.completed-history-item span,
.completed-history-item small,
.completed-history-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.completed-history-item strong {
  min-width: 0;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.completed-history-empty {
  padding: 6px 2px;
}

.today-summary-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  background: hsl(42 72% 99% / 0.72);
}

.today-summary-panel div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.today-summary-panel .eyebrow {
  margin: 0;
}

.today-summary-panel strong,
.today-summary-panel span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: hsl(156 18% 17%);
  background: hsl(154 34% 92% / 0.7);
  font-size: 12px;
  font-weight: 920;
}

.strategy-timeline-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(42 72% 99% / 0.68);
  box-shadow: var(--shadow);
}

.strategy-timeline-drawer > summary {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
  color: hsl(154 24% 30%);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.strategy-timeline-drawer > summary::-webkit-details-marker {
  display: none;
}

.timeline-dot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.timeline-dot-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timeline-dot-row i {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid hsl(154 24% 38% / 0.22);
  border-radius: 999px;
  background: hsl(42 78% 99%);
}

.timeline-dot-row .is-now i {
  border-color: hsl(160 44% 46%);
  background: hsl(160 45% 72%);
}

.strategy-timeline-drawer[open] {
  padding-bottom: 12px;
}

.strategy-timeline-drawer[open] .strategy-hero,
.strategy-timeline-drawer[open] .strategy-footer {
  margin: 0 12px 12px;
}

.week-todo-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}

.week-todo-list > p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.week-todo-list article {
  min-width: 0;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 8px;
  padding: 9px;
  background: hsl(42 78% 99% / 0.72);
}

.week-todo-list article.is-today {
  border-color: hsl(160 34% 48% / 0.36);
  background: hsl(154 34% 92% / 0.78);
}

.week-todo-list span {
  display: block;
  color: hsl(154 24% 34%);
  font-size: 11px;
  font-weight: 950;
}

.week-todo-list strong {
  display: block;
  margin-top: 4px;
  color: var(--foreground);
  font-size: 12px;
  line-height: 1.35;
}

.topbar {
  margin-bottom: 8px;
}

.mainline-panel h1 {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.06;
}

.topbar {
  min-height: auto !important;
  padding: 4px 0 8px !important;
  align-items: center !important;
}

.brand-row {
  display: none !important;
}

.title-block {
  gap: 4px !important;
}

.mainline-panel {
  gap: 4px !important;
}

.topbar h1,
.mainline-panel h1 {
  max-width: 760px !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
  line-height: 1.06 !important;
}

.mainline-panel .hero-subtitle,
.goal-map-drawer {
  display: none !important;
}

.week-status-panel {
  gap: 9px !important;
  padding: 13px 14px !important;
}

.week-status-main {
  display: block !important;
}

.week-status-main h2 {
  margin: 0 !important;
  font-size: clamp(20px, 1.6vw, 27px) !important;
}

.week-status-main h2 span {
  display: inline-flex;
  margin-right: 8px;
  border: 1px solid hsl(154 24% 38% / 0.14);
  border-radius: 999px;
  padding: 4px 8px;
  color: hsl(154 24% 34%);
  background: hsl(154 34% 92% / 0.72);
  font-family: Inter, "Avenir Next", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 950;
  vertical-align: 4px;
}

.week-status-main strong {
  display: none !important;
}

.week-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.week-mini-meta span {
  min-height: 26px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid hsl(154 24% 38% / 0.14);
  border-radius: 999px;
  padding: 0 9px;
  color: hsl(156 18% 22%);
  background: hsl(42 78% 99% / 0.76);
  font-size: 11px;
  font-weight: 920;
  line-height: 1;
  white-space: nowrap;
}

.week-mini-meta span:nth-child(2) {
  border-color: hsl(160 34% 48% / 0.22);
  color: hsl(154 25% 28%);
  background: hsl(154 34% 92% / 0.78);
}

.week-progress-line {
  height: 6px !important;
}

.week-rule-note {
  margin: 2px 0 0;
  border: 1px solid hsl(39 78% 61% / 0.2);
  border-radius: 999px;
  padding: 8px 10px;
  color: hsl(39 36% 28%);
  background: hsl(43 84% 74% / 0.2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.week-output-row {
  gap: 6px !important;
}

.week-output-row span,
.week-output-row small {
  min-height: 27px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

.week-todo-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.week-todo-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
  border: 1px solid hsl(38 22% 32% / 0.1);
  border-radius: 8px;
  padding: 8px;
  background: hsl(42 78% 99% / 0.72);
  cursor: pointer;
}

.week-todo-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: hsl(160 44% 46%);
}

.week-todo-item span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: hsl(154 24% 34%);
  background: hsl(154 34% 92% / 0.78);
  font-size: 11px;
  font-weight: 950;
}

.week-todo-item strong {
  min-width: 0;
  color: var(--foreground);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.week-todo-item.is-checked {
  border-color: hsl(160 34% 48% / 0.24);
  background: hsl(154 34% 92% / 0.68);
}

.week-todo-item.is-checked strong {
  color: var(--muted);
  text-decoration: line-through;
}

.week-todo-item.is-editing,
.focus-subtask.is-editing {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  cursor: default;
}

.atom-edit-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0;
  color: hsl(154 24% 34%);
  background: hsl(42 80% 99% / 0.66);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.atom-edit-button:hover {
  border-color: hsl(160 34% 48% / 0.28);
  background: hsl(154 34% 92% / 0.8);
  transform: none;
}

.atom-edit-input {
  min-width: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid hsl(160 34% 48% / 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--foreground);
  background: hsl(42 80% 99% / 0.92);
  font-size: 13px;
  font-weight: 850;
  outline: none;
}

.atom-edit-input:focus {
  border-color: var(--dimension-color, hsl(160 34% 48% / 0.56));
  box-shadow: 0 0 0 3px hsl(160 34% 48% / 0.12);
}

.atom-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.atom-save-button,
.atom-cancel-button {
  min-height: 32px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.atom-save-button {
  color: hsl(154 28% 18%);
  background: hsl(160 44% 72% / 0.88);
}

.atom-cancel-button {
  color: var(--muted);
  background: hsl(42 80% 99% / 0.7);
}

.daily-board-task {
  display: block !important;
  padding: 0 !important;
}

.daily-board-task > summary {
  display: grid;
  grid-template-columns: 30px minmax(220px, 1fr) minmax(240px, 0.78fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.daily-board-task > summary::-webkit-details-marker {
  display: none;
}

.daily-board-task > summary > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: hsl(42 78% 99%);
  background: var(--dimension-color, hsl(154 36% 54%));
  font-weight: 950;
}

.daily-board-task > summary > div {
  min-width: 0;
}

.daily-next-todo {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 28%, hsl(38 22% 32% / 0.12));
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--foreground);
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.14)) 54%, hsl(42 80% 99% / 0.86));
  text-align: left;
}

button.daily-next-todo {
  cursor: pointer;
}

button.daily-next-todo:hover {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 50%, hsl(38 22% 32% / 0.12));
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 72%, hsl(42 80% 99% / 0.86));
  transform: none;
}

.daily-next-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 62%, white);
  border-radius: 6px;
  color: white;
  background: hsl(42 80% 99% / 0.7);
  font-size: 14px;
  font-weight: 950;
}

.daily-next-copy {
  min-width: 0;
}

.daily-next-copy small,
.daily-next-copy strong {
  display: block;
  min-width: 0;
  margin: 0;
}

.daily-next-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.daily-next-copy strong {
  overflow: hidden;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-next-todo.is-complete {
  opacity: 0.72;
}

.daily-next-todo.is-complete .daily-next-check {
  border-color: var(--dimension-color, hsl(154 36% 54%));
  background: var(--dimension-color, hsl(154 36% 54%));
}

.daily-quick-subtask-add {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 36%, hsl(155 18% 28% / 0.1));
  border-radius: 8px;
  padding: 7px 12px;
  color: hsl(156 20% 31%);
  background: hsl(44 52% 99% / 0.62);
  font-size: 13px;
  font-weight: 800;
}

.daily-quick-subtask-add span {
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.daily-quick-subtask-add:hover {
  border-style: solid;
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.16)) 52%, hsl(44 56% 99%));
  transform: none;
}

.daily-quick-subtask-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.daily-quick-subtask-form input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 48%, hsl(155 18% 28% / 0.1));
  border-radius: 8px;
  padding: 0 10px;
  color: var(--foreground);
  background: hsl(44 58% 99% / 0.96);
  font: inherit;
  outline: none;
}

.daily-quick-subtask-form input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 14%, transparent);
}

.daily-quick-subtask-form button {
  width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: hsl(156 24% 18%);
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 74%, hsl(44 56% 99%));
  font-size: 16px;
  font-weight: 800;
}

.daily-quick-subtask-form [data-daily-quick-subtask-cancel] {
  color: var(--muted);
  background: transparent;
}

.daily-title-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.daily-title-row strong {
  min-width: 0;
}

.daily-title-edit {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0;
  color: hsl(154 24% 34%);
  background: hsl(42 80% 99% / 0.72);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.daily-title-edit:hover {
  border-color: hsl(160 34% 48% / 0.28);
  background: hsl(154 34% 92% / 0.82);
  transform: none;
}

.daily-title-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.daily-title-editor input {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--dimension-color, hsl(160 34% 48% / 0.42));
  border-radius: 8px;
  padding: 0 10px;
  color: var(--foreground);
  background: hsl(42 80% 99% / 0.94);
  font-size: 15px;
  font-weight: 900;
  outline: none;
}

.daily-title-editor input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dimension-color, hsl(160 34% 48%)) 16%, transparent);
}

.daily-title-editor button {
  min-height: 32px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: hsl(42 80% 99% / 0.78);
  font-size: 12px;
  font-weight: 900;
}

.daily-title-editor [data-daily-title-save] {
  color: hsl(154 28% 18%);
  background: hsl(160 44% 72% / 0.88);
}

.daily-board-task > summary b {
  grid-column: 4;
  color: var(--dimension-color, hsl(154 36% 44%));
  font-size: 16px;
  font-weight: 950;
}

.daily-board-task[open] > summary {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  border-bottom: 1px solid hsl(38 22% 32% / 0.1);
}

.daily-board-task[open] > summary .daily-next-todo {
  display: none;
}

.daily-board-task[open] > summary b {
  grid-column: 3;
}

.daily-board-detail {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.daily-board-detail .focus-next,
.daily-board-detail .progress-control {
  margin: 0;
}

.daily-board-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.daily-board-item-actions button {
  min-height: 30px;
  border: 1px solid hsl(38 22% 32% / 0.12);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--muted);
  background: hsl(42 80% 99% / 0.72);
  font-size: 12px;
  font-weight: 850;
}

.daily-board-item-actions .daily-task-complete {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(160 44% 48%)) 54%, hsl(38 22% 32% / 0.12));
  color: hsl(154 28% 16%);
  background: color-mix(in srgb, var(--dimension-bg, hsl(160 44% 72% / 0.24)) 72%, hsl(42 80% 99%));
}

.focus-workspace-fold > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.focus-workspace-fold > summary::-webkit-details-marker {
  display: none;
}

.focus-workspace-fold:not([open]) {
  padding: 14px 16px;
}

.focus-workspace-fold[open] > summary {
  margin-bottom: 12px;
}

.strategy-rule-strip,
.strategy-ladder-panel {
  margin: 0 12px 12px;
}

.focus-subtasks {
  margin: 8px 0 9px;
  overflow: hidden;
  border: 1px solid hsl(38 22% 32% / 0.11);
  border-radius: 8px;
  background: hsl(42 70% 99% / 0.58);
}

.focus-subtasks > summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: hsl(154 24% 28%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
  outline: none;
}

.focus-subtasks > summary::-webkit-details-marker {
  display: none;
}

.focus-subtasks > summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--dimension-color);
  background: color-mix(in srgb, var(--dimension-bg) 58%, hsl(42 80% 99%));
  font-size: 16px;
  line-height: 1;
}

.focus-subtasks[open] > summary::after {
  content: "-";
}

.daily-board-task .focus-subtasks.is-always-open > summary {
  cursor: default;
  pointer-events: none;
}

.daily-board-task .focus-subtasks.is-always-open > summary::after {
  display: none;
}

.focus-subtask-list {
  display: grid;
  gap: 6px;
  padding: 0 9px 9px;
}

.focus-subtask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: start;
  min-width: 0;
  min-height: 32px;
  border: 1px solid hsl(38 22% 32% / 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  background: hsl(42 80% 99% / 0.72);
}

.focus-subtask-check {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.focus-subtask-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--dimension-color);
}

.focus-subtask-check span {
  min-width: 0;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.focus-subtask.is-checked {
  opacity: 0.72;
}

.focus-subtask.is-checked .focus-subtask-check span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.focus-subtask-add {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed color-mix(in srgb, var(--dimension-color) 42%, hsl(38 22% 32% / 0.18));
  border-radius: 8px;
  color: hsl(154 24% 34%);
  background: color-mix(in srgb, var(--dimension-bg) 40%, hsl(42 80% 99% / 0.76));
  font-size: 13px;
  font-weight: 900;
}

.focus-subtask-add span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: hsl(42 80% 99%);
  background: var(--dimension-color);
  font-size: 16px;
  line-height: 1;
}

.focus-subtask-add:hover {
  border-style: solid;
  background: color-mix(in srgb, var(--dimension-bg) 56%, hsl(42 80% 99% / 0.84));
  transform: none;
}

@media (max-width: 1180px) {
  .daily-board-task > summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .daily-board-task > summary .daily-next-todo {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .daily-board-task > summary .daily-quick-subtask-add,
  .daily-board-task > summary .daily-quick-subtask-form {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .daily-board-task > summary b {
    grid-column: 3;
    grid-row: 1;
  }

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

@media (max-width: 760px) {
  .strategy-hero,
  .strategy-grid,
  .strategy-footer {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  .engine-panel,
  .ladder-panel,
  .engine-grid,
  .milestone-ladder {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .engine-grid,
  .milestone-ladder,
  .rhythm-grid {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    contain: paint;
  }

  .daily-board-head,
  .strategy-timeline-drawer > summary {
    display: grid;
  }

  .daily-board-head h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .daily-board-head > strong {
    width: fit-content;
    min-height: 38px;
    padding: 0 15px;
  }

  .daily-board-task {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .daily-board-task b {
    grid-column: 2;
  }

  .daily-board-input {
    grid-template-columns: 1fr;
  }

  .daily-entry-grid,
  .daily-entry-grid:has(.daily-done-capture[open]) {
    grid-template-columns: 1fr;
  }

  .daily-chore-form {
    grid-template-columns: 1fr;
  }

  .daily-done-form {
    grid-template-columns: 1fr;
  }

  .daily-done-chip {
    width: 100%;
  }

  .today-summary-panel {
    border-radius: 10px;
  }

  .today-summary-panel div {
    width: 100%;
    justify-content: space-between;
  }

  .timeline-dot-row {
    justify-content: start;
  }

  .week-todo-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    overscroll-behavior-x: contain;
    contain: paint;
  }

  .week-todo-list > p {
    flex: 0 0 100%;
  }

  .week-todo-list article {
    flex: 0 0 138px;
    min-height: 70px;
  }

  .week-mini-meta {
    gap: 5px;
  }

  .week-mini-meta span {
    min-height: 25px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .strategy-timeline-drawer[open] .strategy-hero,
  .strategy-timeline-drawer[open] .strategy-footer {
    margin: 0 10px 10px;
  }
}

.hidden-module {
  display: none !important;
}

.topbar {
  justify-content: flex-end !important;
  margin-bottom: 4px !important;
}

.weekly-rhythm-module {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.weekly-rhythm-module .week-status-panel {
  margin: 0;
}

.weekly-rhythm-module .weekly-rhythm {
  padding: 14px;
}

.weekly-rhythm-module .section-heading h2 {
  font-size: clamp(20px, 2vw, 28px);
}

.week-status-main {
  min-width: 0;
}

.week-mini-meta .week-title-chip {
  max-width: min(100%, 440px);
  border-color: hsl(160 34% 48% / 0.2);
  color: hsl(154 24% 24%);
  background: hsl(154 34% 92% / 0.86);
}

.week-status-main h2,
.week-status-main .eyebrow {
  display: none !important;
}

.strategy-goal-map {
  margin: 0 12px 12px;
}

.harvest-panel[hidden] {
  display: none !important;
}

.harvest-ability-jars {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .topbar {
    display: flex !important;
  }

  .weekly-rhythm-module {
    gap: 8px;
  }

  .week-mini-meta .week-title-chip {
    max-width: 100%;
  }
}

/* Final visual layer: later than legacy prototype rules by design. */
:root {
  --paper: hsl(44 52% 98%);
  --paper-soft: hsl(46 38% 96%);
  --ink: hsl(158 22% 15%);
  --ritual-ink: hsl(42 42% 96%);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

body {
  color: var(--ink);
  background: hsl(44 42% 96%);
}

body::before {
  opacity: 0.42;
  background-size: 72px 72px;
}

.side-rail {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 48% 98% / 0.9);
  box-shadow: 0 20px 48px hsl(34 24% 38% / 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rail-mark,
.brand-mark {
  border-color: hsl(155 18% 28% / 0.12);
  background: hsl(155 30% 78%);
  box-shadow: inset 0 0 0 5px hsl(43 74% 88% / 0.5);
}

.daily-command-board {
  gap: clamp(12px, 1.6vw, 18px);
  border-color: hsl(155 20% 30% / 0.12);
  padding: clamp(18px, 2.4vw, 30px);
  background: hsl(44 54% 98% / 0.96);
  box-shadow:
    0 24px 64px hsl(36 24% 42% / 0.1),
    inset 0 1px 0 hsl(0 0% 100% / 0.76);
}

.daily-board-head h2,
.day-close-hero h3,
.harvest-panel .section-heading h2,
.harvest-hero h3 {
  font-family: "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: 0;
}

.daily-board-head h2 {
  font-size: clamp(34px, 4vw, 56px);
}

.daily-board-head > strong {
  min-width: 64px;
  min-height: 42px;
  border-radius: 8px;
  background: hsl(153 28% 92% / 0.82);
  font-size: 16px;
}

.daily-board-task,
.daily-board-empty {
  border-color: hsl(155 18% 28% / 0.11);
  padding: 12px 13px;
  background: hsl(44 50% 99% / 0.76);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.daily-board-task:hover {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 38%, hsl(155 18% 28% / 0.12));
  box-shadow: 0 8px 22px hsl(40 20% 38% / 0.08);
}

.daily-board-task.is-current {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 44%, hsl(155 18% 28% / 0.1));
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 28%, hsl(44 54% 99%));
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 12%, transparent),
    inset 3px 0 0 color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 74%, transparent);
  animation: driftFocusIn 280ms ease-out both;
}

.daily-board-list:has(.daily-board-task.is-current) .daily-board-task:not(.is-current):not([open]) {
  border-color: hsl(155 14% 30% / 0.08);
  background: hsl(44 42% 98% / 0.56);
  box-shadow: none;
}

.daily-board-list:has(.daily-board-task.is-current) .daily-board-task:not(.is-current):not([open]) > summary > span {
  color: hsl(157 14% 34%);
  background: hsl(153 18% 89%);
}

.daily-board-task.is-current .daily-next-todo {
  border-color: color-mix(in srgb, var(--dimension-color, hsl(154 36% 54%)) 44%, hsl(155 18% 28% / 0.1));
  background: color-mix(in srgb, var(--dimension-bg, hsl(154 36% 54% / 0.18)) 68%, hsl(44 58% 99%));
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.7);
}

.daily-board-task:not(.is-current):not([open]) .daily-next-todo {
  border-color: hsl(155 14% 30% / 0.08);
  background: hsl(44 36% 97% / 0.62);
}

.daily-board-task:not(.is-current):not([open]) .daily-next-copy small {
  opacity: 0.72;
}

@keyframes driftFocusIn {
  from {
    opacity: 0.78;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-board-task.is-current {
    animation: none;
  }
}

.daily-board-task > span,
.daily-board-task > summary > span {
  border-radius: 8px;
}

.daily-add-capture,
.daily-done-capture {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(46 42% 97% / 0.72);
}

.daily-board-input input,
.daily-chore-form input,
.daily-done-form input,
.daily-board-input button,
.daily-chore-form button,
.daily-done-form button {
  border-radius: 8px;
}

.daily-board-input button {
  border-color: hsl(157 28% 32% / 0.18);
  color: hsl(156 24% 15%);
  background: hsl(156 36% 76%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.fold-panel {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 48% 98% / 0.82);
}

.insight-fold > summary strong {
  font-size: 0;
}

.insight-fold > summary strong::after {
  content: "展开";
  font-size: 12px;
}

.insight-fold[open] > summary strong::after {
  content: "收起";
}

.day-close-panel {
  border-color: hsl(155 18% 28% / 0.1);
  background: hsl(44 54% 98% / 0.9);
}

.day-close-button {
  min-height: 50px;
  border-color: hsl(157 28% 25% / 0.2);
  border-radius: 8px;
  color: hsl(44 52% 97%);
  background: hsl(157 26% 23%);
  box-shadow: 0 10px 24px hsl(157 22% 18% / 0.14);
}

.day-close-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px hsl(157 22% 18% / 0.18);
}

.harvest-panel {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 78vh);
  display: grid;
  align-content: end;
  gap: clamp(22px, 4vw, 44px);
  scroll-margin-top: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 64px);
  color: var(--ritual-ink);
  background-color: hsl(156 24% 10%);
  background-image: url("assets/harvest-garden-v1.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px hsl(150 22% 10% / 0.24);
}

.harvest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  background: hsl(156 24% 9% / 0.4);
  pointer-events: none;
}

.harvest-panel .section-heading {
  max-width: 720px;
}

.harvest-panel .section-heading .eyebrow {
  color: hsl(42 72% 76%);
}

.harvest-panel .section-heading h2 {
  margin-top: 7px;
  color: var(--ritual-ink);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.harvest-hero,
.harvest-empty,
.harvest-panel .ability-jar-card,
.harvest-panel .harvest-dimension {
  border: 1px solid hsl(42 48% 96% / 0.22);
  background: hsl(156 22% 12% / 0.48);
  box-shadow: inset 0 1px 0 hsl(42 48% 98% / 0.14);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.harvest-hero h3,
.harvest-empty strong,
.harvest-panel .ability-jar-card strong,
.harvest-panel .harvest-dimension b {
  color: var(--ritual-ink);
}

.harvest-hero p,
.harvest-empty p,
.harvest-panel .ability-jar-card p,
.harvest-panel .ability-jar-card small,
.harvest-panel .harvest-dimension p {
  color: hsl(42 30% 91% / 0.86);
}

.harvest-hero > strong {
  border-color: hsl(42 52% 92% / 0.3);
  color: hsl(42 76% 76%);
  background: hsl(156 22% 8% / 0.38);
}

.harvest-ability-jars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.harvest-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 760px) {
  .daily-command-board {
    padding: 16px;
  }

  .daily-board-head h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .harvest-panel {
    min-height: 720px;
    padding: 24px 16px;
    background-position: 62% center;
  }

  .harvest-ability-jars {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .harvest-panel .ability-jar-card {
    flex: 0 0 230px;
    scroll-snap-align: start;
  }
}
