@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");

@font-face { font-family: "MindPulse Manrope"; src: url("assets/fonts/Manrope-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "MindPulse Manrope"; src: url("assets/fonts/Manrope-Medium.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "MindPulse Manrope"; src: url("assets/fonts/Manrope-Semibold.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "MindPulse Manrope"; src: url("assets/fonts/Manrope-Bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --bg: #f4fbf4;
  --bg-soft: #eef5ee;
  --surface: #ffffff;
  --surface-low: #f7fbf6;
  --surface-high: #e3eae3;
  --surface-line: #dde4dd;
  --outline: #c2c9bb;
  --outline-strong: #72796e;
  --text: #161d19;
  --text-strong: #161d19;
  --text-soft: #42493e;
  --primary: #154212;
  --primary-strong: #2d5a27;
  --primary-soft: #3b6934;
  --secondary: #196d24;
  --lime: #ccf05f;
  --lime-dim: #b1d446;
  --lime-soft: #bcf0ae;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --sidebar: #0f5d42;
  --sidebar-deep: #0b4e38;
  --sidebar-soft: #106b4b;
  --shadow-soft: 0 24px 48px rgba(21, 66, 18, 0.08);
  --shadow-card: 0 10px 30px rgba(21, 66, 18, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --sidebar-width: 272px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f6fbf5 0%, #eff7ef 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 18px 22px;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 12px 2px;
}

.sidebar-logo {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sidebar-subtitle {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.sidebar-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: 10px;
}

.sidebar-nav {
  flex: 1;
  flex-direction: column;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 18px;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link-mark {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.82;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.is-active {
  background: var(--sidebar-soft);
  color: var(--lime);
  transform: translateX(2px);
}

.sidebar-cta {
  min-height: 60px;
  border: none;
  border-radius: 18px;
  background: #a8ef26;
  color: #12341c;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(10, 44, 30, 0.22);
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 16px 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 66, 18, 0.08);
}

.topbar-search {
  flex: 1;
  max-width: 560px;
}

.topbar-search-input {
  width: 100%;
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: #e9f0e9;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search-input:focus {
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-user-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime-soft), var(--primary-strong));
  color: #ffffff;
  font-weight: 800;
}

.topbar-user strong,
.topbar-user span {
  display: block;
}

.topbar-user strong {
  font-size: 0.98rem;
}

.topbar-user span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.site-kicker,
.section-kicker,
.chip-filter-label,
.auth-kicker,
.calendar-classic-kicker,
.calendar-day-panel-kicker,
.analytics-filter-label,
.calendar-picker-label,
.task-meta-label,
.analytics-card-label,
.sidebar-caption {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-kicker,
.section-kicker,
.auth-kicker,
.analytics-filter-label,
.calendar-classic-kicker,
.calendar-day-panel-kicker,
.chip-filter-label,
.calendar-picker-label {
  margin: 0 0 8px;
  color: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-content {
  padding: 26px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-panel,
.section,
.goal-card,
.metric-card,
.analytics-card,
.analytics-wheel-card,
.calendar-month-sidebar,
.calendar-classic-shell,
.auth-dialog,
.backlog-slot-cell,
.backlog-column-header,
.calendar-month-event,
.calendar-selected-event {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-card);
}

.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 8px 4px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-intro-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.page-intro-compact {
  padding-bottom: 0;
}

.edit-mode-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(204, 240, 95, 0.22);
  color: var(--primary);
  border: 1px solid rgba(45, 90, 39, 0.12);
  font-weight: 700;
}

.section {
  border-radius: var(--radius-xl);
  padding: 24px;
}

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

.section-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.quarter-filter,
.analytics-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.quarter-filter span {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.quarter-filter select,
.analytics-multi-trigger,
.goal-create-form input,
.goal-create-form select,
.goal-edit-input,
.goal-edit-select,
.metric-input,
.auth-field input,
.auth-field select,
.calendar-event-form input,
.calendar-event-form select,
.inline-task-input,
.inline-task-row select,
.task-status-select,
.topbar-search-input {
  border-radius: 16px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  color: var(--text);
}

.quarter-filter select,
.goal-create-form input,
.goal-create-form select,
.goal-edit-input,
.goal-edit-select,
.metric-input,
.auth-field input,
.auth-field select,
.calendar-event-form input,
.calendar-event-form select,
.inline-task-input,
.inline-task-row select {
  min-height: 46px;
  padding: 0 14px;
}

.quarter-filter select:focus,
.goal-create-form input:focus,
.goal-create-form select:focus,
.goal-edit-input:focus,
.goal-edit-select:focus,
.metric-input:focus,
.auth-field input:focus,
.auth-field select:focus,
.calendar-event-form input:focus,
.calendar-event-form select:focus,
.inline-task-input:focus,
.inline-task-row select:focus,
.task-status-select:focus {
  outline: none;
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.section-filters {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.chip-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-pill);
  background: var(--surface-low);
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active {
  background: rgba(204, 240, 95, 0.28);
  border-color: rgba(45, 90, 39, 0.18);
  color: var(--primary);
}

.goal-create-form,
.goal-edit-form,
.metric-edit-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goal-create-form {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-low);
  border: 1px solid var(--surface-line);
}

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

.goal-edit-title {
  grid-column: 1 / -1;
}

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

.goal-card {
  border-radius: 24px;
  padding: 22px;
}

.goal-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.goal-acceptance {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.goal-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-line);
  color: var(--primary);
  font-weight: 700;
}

.goal-edit-actions,
.auth-actions,
.inline-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.metric-card {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--lime) 0%, var(--primary-soft) 100%);
}

.metric-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.35;
  padding-left: 10px;
}

.metric-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding-left: 10px;
}

.metric-values-editable {
  padding-left: 0;
}

.metric-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary-strong);
  font-weight: 800;
}

.metric-value-target {
  color: var(--text);
}

.form-action-button,
.ghost-button,
.login-button,
.calendar-event-submit,
.calendar-event-cancel,
.inline-action-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.form-action-button,
.login-button,
.calendar-event-submit,
.inline-action-button.is-primary {
  border: none;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(21, 66, 18, 0.14);
}

.form-action-button:hover,
.login-button:hover,
.calendar-event-submit:hover,
.inline-action-button.is-primary:hover,
.sidebar-cta:hover {
  transform: translateY(-1px);
}

.ghost-button,
.calendar-event-cancel,
.inline-action-button {
  border: 1px solid var(--surface-line);
  background: var(--surface-low);
  color: var(--text);
}

.metric-save-button {
  align-self: flex-start;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 40, 23, 0.34);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: min(480px, calc(100% - 24px));
  padding: 28px;
  border-radius: 28px;
}

.auth-dialog h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.08;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

.backlog-section {
  overflow: hidden;
}

.backlog-summary {
  display: none;
}

.daily-focus-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-low) 0%, #fdfefd 100%);
  border: 1px solid var(--surface-line);
}

.daily-focus-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.daily-focus-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.daily-focus-select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  color: var(--text);
}

.daily-focus-select:focus {
  outline: none;
  border-color: rgba(45, 90, 39, 0.35);
  box-shadow: 0 0 0 4px rgba(162, 247, 156, 0.16);
}

.daily-focus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.daily-focus-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.daily-focus-item.is-empty .daily-focus-input {
  border-style: dashed;
}

.daily-focus-item.is-done .daily-focus-input {
  color: var(--text-soft);
  text-decoration: line-through;
}

.daily-focus-check {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.daily-focus-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.daily-focus-check span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.daily-focus-check input:checked + span {
  background: rgba(162, 247, 156, 0.28);
  border-color: rgba(45, 90, 39, 0.35);
}

.daily-focus-check input:checked + span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  top: 7px;
  left: 11px;
}

.daily-focus-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--outline);
  background: var(--surface-low);
  color: var(--text);
}

.daily-focus-input:focus {
  outline: none;
  border-color: rgba(45, 90, 39, 0.35);
  box-shadow: 0 0 0 4px rgba(162, 247, 156, 0.16);
}

.backlog-board {
  overflow-x: auto;
  padding-bottom: 8px;
}

.backlog-table {
  min-width: 1180px;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.backlog-day-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.backlog-column-header {
  min-height: 88px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-low) 0%, #fdfefd 100%);
}

.backlog-day-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.backlog-day-title strong {
  font-size: 1.35rem;
  line-height: 1;
}

.backlog-day-title span {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.backlog-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 520px;
}

.day-pulse-shell {
  display: grid;
  gap: 8px;
}

.day-pulse-card {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(21, 66, 18, 0.12);
  border-radius: 18px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(247, 251, 246, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.day-pulse-card:hover {
  border-color: rgba(45, 90, 39, 0.18);
  background: rgba(188, 240, 174, 0.14);
}

.day-pulse-card[aria-expanded="true"] {
  border-color: rgba(45, 90, 39, 0.22);
}

.day-pulse-top,
.day-pulse-bottom,
.day-pulse-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-pulse-top strong,
.day-pulse-bottom span,
.day-pulse-details span {
  min-width: 0;
}

.day-pulse-top strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.day-pulse-top span,
.day-pulse-bottom span,
.day-pulse-details span {
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.2;
}

.day-pulse-note {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.25;
}

.day-pulse-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e8efe7;
  overflow: hidden;
}

.day-pulse-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6faa76 0%, #2d5a27 100%);
  transition: width 0.28s ease;
}

.day-pulse-bar span[data-state="stable"] {
  background: linear-gradient(90deg, #9fc69d 0%, #4d7c49 100%);
}

.day-pulse-bar span[data-state="heavy"] {
  background: linear-gradient(90deg, #cce85f 0%, #8f9d11 100%);
}

.day-pulse-bar span[data-state="risk"] {
  background: linear-gradient(90deg, #ffb4ab 0%, #c03f35 100%);
}

.day-pulse-bottom {
  font-weight: 700;
}

.day-pulse-over {
  color: #b42318 !important;
}

.day-pulse-details {
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2px 2px;
}

.backlog-slot-cell {
  border-radius: 20px;
  padding: 8px;
}

.backlog-slot-cell.is-task {
  cursor: grab;
}

.backlog-slot-cell.is-task.is-dragging {
  opacity: 0.45;
}

.backlog-day-add-button {
  min-height: 54px;
  width: 100%;
  border: 1px dashed rgba(21, 66, 18, 0.18);
  border-radius: 18px;
  background: var(--surface-low);
  color: var(--text-soft);
  font-weight: 700;
  cursor: pointer;
}

.backlog-day-add-button:hover,
.backlog-slot-cell.is-clickable:hover {
  background: rgba(188, 240, 174, 0.18);
  border-color: rgba(45, 90, 39, 0.18);
}

.backlog-slot-cell.is-empty,
.backlog-slot-cell.is-clickable {
  min-height: 64px;
  border: 1px dashed rgba(21, 66, 18, 0.14);
  background: var(--surface-low);
  box-shadow: none;
}

.backlog-slot-cell.is-editor {
  background: #f8fcf8;
}

.backlog-slot-cell.is-drop-target,
.backlog-day-list.is-drop-target,
.backlog-day-column.is-drop-target .backlog-column-header {
  background: rgba(188, 240, 174, 0.16);
  border-color: rgba(45, 90, 39, 0.18);
}

.inline-task-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-task-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.inline-task-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.task-card {
  position: relative;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  min-height: 124px;
}

.task-card.is-done {
  background: linear-gradient(180deg, rgba(188, 240, 174, 0.24) 0%, rgba(255, 255, 255, 1) 100%);
}

.task-card p {
  margin: 0 0 14px;
  max-width: calc(100% - 26px);
  line-height: 1.5;
}

.task-drag-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(66, 73, 62, 0.38);
  font-weight: 800;
}

.task-done-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(168, 239, 38, 0.24);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.task-card-actions,
.task-card-actions-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-status-select {
  min-height: 34px;
  padding: 0 12px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta-labeled {
  align-items: center;
}

.task-meta-label {
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 700;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.inline-task-actions > * {
  flex: 1 1 140px;
}

.status-done {
  background: rgba(162, 247, 156, 0.34);
  color: #21732a;
}

.status-progress {
  background: rgba(204, 240, 95, 0.26);
  color: #3c4d00;
}

.status-planned {
  background: #e7eee7;
  color: #42503f;
}

.task-type-deep {
  background: rgba(91, 132, 196, 0.14);
  color: #436b9d;
}

.task-type-high {
  background: rgba(201, 96, 96, 0.14);
  color: #a24e4e;
}

.task-type-low {
  background: rgba(111, 170, 118, 0.16);
  color: #5d8c63;
}

.energy-cost-low {
  background: rgba(111, 170, 118, 0.12);
  color: #5d8c63;
}

.energy-cost-medium {
  background: rgba(204, 240, 95, 0.22);
  color: #445700;
}

.energy-cost-high {
  background: rgba(201, 96, 96, 0.12);
  color: #a24e4e;
}

.calendar-classic-section {
  padding: 24px;
}

.calendar-classic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 18px;
}

.calendar-classic-shell,
.calendar-month-sidebar {
  border-radius: 28px;
  overflow: hidden;
}

.calendar-classic-topbar,
.calendar-classic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.calendar-classic-topbar {
  border-bottom: 1px solid var(--surface-line);
  background: var(--surface-low);
}

.calendar-current-date {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.calendar-month-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-classic-header h2,
.calendar-month-sidebar h3,
.calendar-day-panel h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.calendar-classic-nav {
  display: flex;
  gap: 10px;
}

.calendar-nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--surface-line);
  border-radius: 14px;
  background: var(--surface-low);
  color: var(--text);
  cursor: pointer;
}

.calendar-weekdays,
.calendar-classic-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  padding: 0 22px;
}

.calendar-weekday {
  padding: 0 0 14px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.calendar-classic-grid {
  gap: 8px;
  padding: 0 22px 22px;
}

.calendar-classic-day {
  min-height: 84px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.calendar-classic-day:hover {
  background: rgba(233, 240, 233, 0.78);
}

.calendar-classic-day-number {
  display: inline-block;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
}

.calendar-classic-day.is-outside {
  color: rgba(66, 73, 62, 0.35);
  pointer-events: none;
}

.calendar-classic-day.is-selected:not(.is-today) {
  background: rgba(162, 247, 156, 0.22);
}

.calendar-classic-day.is-today {
  background: var(--primary);
  color: #ffffff;
}

.calendar-classic-day-dot {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.calendar-day-panel {
  padding: 22px;
  border-top: 1px solid var(--surface-line);
  background: var(--surface-low);
}

.calendar-day-panel-header,
.calendar-month-sidebar-header {
  margin-bottom: 16px;
}

.calendar-day-events-list,
.calendar-month-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-selected-event,
.calendar-month-event {
  border-radius: 20px;
  padding: 14px 16px;
}

.calendar-selected-event.is-event,
.calendar-month-event.is-event,
.calendar-classic-day.is-event:not(.is-today) {
  background: rgba(188, 240, 174, 0.18);
}

.calendar-selected-event.is-review,
.calendar-month-event.is-review,
.calendar-classic-day.is-review:not(.is-today) {
  background: rgba(162, 247, 156, 0.2);
}

.calendar-selected-event.is-deadline,
.calendar-month-event.is-deadline,
.calendar-classic-day.is-deadline:not(.is-today) {
  background: rgba(255, 218, 214, 0.42);
}

.calendar-selected-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calendar-selected-event-time,
.calendar-month-event-date strong {
  color: var(--primary-strong);
  font-weight: 800;
}

.calendar-selected-event-copy,
.calendar-month-event-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-event-actions,
.calendar-event-actions-side {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-event-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-pill);
  background: var(--surface-low);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-event-action.is-danger {
  color: var(--danger);
}

.calendar-event-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 140px 160px auto auto;
  gap: 10px;
  margin-top: 16px;
}

.calendar-month-sidebar {
  padding: 22px;
}

.calendar-month-week-group,
.calendar-month-week-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-month-week-title {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.calendar-month-event {
  display: flex;
  gap: 12px;
}

.calendar-month-event-date {
  min-width: 54px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-selected-empty {
  margin: 0;
  color: var(--text-soft);
}

.week-timeline-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.week-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 20px;
  align-items: start;
}

.week-timeline-board,
.week-timeline-sidepanel {
  border-radius: 28px;
  border: 1px solid var(--surface-line);
  background: linear-gradient(180deg, var(--surface-low) 0%, #fdfefd 100%);
  box-shadow: var(--shadow-soft);
}

.week-timeline-board {
  padding: 18px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  align-items: stretch;
}

.week-timeline-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  flex: 1 0 220px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
}

.week-timeline-day.is-selected {
  border-color: rgba(45, 90, 39, 0.18);
  background: rgba(188, 240, 174, 0.14);
}

.week-timeline-day-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.week-timeline-day-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-timeline-day-title strong {
  font-size: 1.2rem;
  line-height: 1;
}

.week-timeline-day-title span {
  color: var(--text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.week-timeline-add-button {
  min-height: 42px;
}

.week-timeline-day-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-timeline-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(201, 96, 96, 0.12);
  border-left: 3px solid rgba(201, 96, 96, 0.45);
  box-shadow: none;
}

.week-timeline-card-time {
  color: #a24e4e;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.week-timeline-card-segment {
  display: none;
}

.week-timeline-card-segment::before {
  display: none;
}

.week-timeline-card-dot {
  display: none;
}

.week-timeline-card-copy {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.week-timeline-card-copy strong {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-timeline-empty {
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(21, 66, 18, 0.14);
  color: var(--text-soft);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.week-timeline-sidepanel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.week-timeline-sidepanel-header,
.week-timeline-summary-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-timeline-sidepanel h3,
.week-timeline-summary-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.week-timeline-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(188, 240, 174, 0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.week-timeline-selected-list,
.week-timeline-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.week-deadline-item,
.week-summary-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.week-deadline-item {
  align-items: flex-start;
  justify-content: space-between;
}

.week-deadline-copy,
.week-summary-copy,
.week-summary-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-deadline-copy span,
.week-summary-copy span,
.week-summary-date span {
  color: var(--text-soft);
}

.week-summary-date {
  min-width: 74px;
}

.week-timeline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.week-timeline-form .calendar-event-submit,
.week-timeline-form .calendar-event-cancel {
  width: 100%;
}

.week-timeline-form .calendar-event-submit {
  grid-column: 1 / span 2;
}

.week-timeline-form .calendar-event-cancel {
  grid-column: 1 / span 2;
}

@media (max-width: 1240px) {
  .week-timeline-layout {
    grid-template-columns: 1fr;
  }

  .week-timeline-board {
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .week-timeline-controls {
    width: 100%;
    justify-content: space-between;
  }

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

  .week-timeline-form .calendar-event-submit,
  .week-timeline-form .calendar-event-cancel {
    grid-column: auto;
  }
}

.analytics-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.analytics-multi-select {
  position: relative;
  min-width: 250px;
}

.analytics-multi-trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 44px 0 16px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.analytics-multi-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-soft);
  border-bottom: 1.5px solid var(--text-soft);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.analytics-multi-select.is-open .analytics-multi-trigger::after {
  transform: translateY(-35%) rotate(-135deg);
}

.analytics-multi-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  z-index: 12;
}

.analytics-multi-options,
.analytics-multi-group,
.analytics-multi-group-list {
  display: flex;
  flex-direction: column;
}

.analytics-multi-options {
  gap: 14px;
}

.analytics-multi-group {
  gap: 8px;
}

.analytics-multi-group-title {
  margin: 0;
  color: var(--primary-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.analytics-multi-group-list {
  gap: 8px;
}

.analytics-multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-low);
  cursor: pointer;
}

.analytics-multi-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-soft);
}

.analytics-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.analytics-card {
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-card-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.analytics-card-note {
  color: var(--text-soft);
}

.analytics-chart-grid {
  display: block;
}

.analytics-chart-grid-energy {
  display: block;
}

.analytics-wheel-layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.analytics-wheel-card {
  min-height: 320px;
  width: min(420px, 100%);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 24px;
}

.analytics-wheel {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}

.analytics-wheel::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: #ffffff;
}

.analytics-wheel-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.analytics-wheel-center strong {
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.analytics-wheel-center span {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.analytics-wheel-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-wheel-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-wheel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 12px;
}

.analytics-wheel-legend-text {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.analytics-wheel-legend-text strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.analytics-wheel-legend-text span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.analytics-empty {
  margin: 0;
  color: var(--text-soft);
}

.analytics-weekday-chart {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  min-height: 320px;
}

.analytics-weekday-scale {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: end;
  padding: 8px 0 28px;
}

.analytics-weekday-scale-value {
  color: var(--text-soft);
  font-size: 0.82rem;
  transform: translateY(50%);
}

.analytics-weekday-plot {
  position: relative;
  min-height: 320px;
  padding: 8px 10px 0;
}

.analytics-weekday-grid {
  position: absolute;
  inset: 8px 10px 48px 10px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.analytics-weekday-grid-line {
  border-top: 1px solid rgba(21, 66, 18, 0.12);
}

.analytics-weekday-bars {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.analytics-weekday-bar-card {
  height: 100%;
  display: grid;
  grid-template-rows: 28px 1fr 36px;
  align-items: end;
  justify-items: center;
}

.analytics-weekday-bar-value {
  font-size: 1.06rem;
  font-weight: 800;
}

.analytics-weekday-bar-track {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.analytics-weekday-bar-fill {
  width: min(42px, 72%);
  min-height: 6px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #b7d0ba 0%, #245e24 100%);
}

.analytics-weekday-bar-label {
  color: var(--text-soft);
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .goal-grid,
  .metrics-grid,
  .analytics-overview-grid,
  .analytics-overview-grid-compact,
  .analytics-row,
  .ai-coach-grid,
  .ai-coach-hero,
  .calendar-classic-layout {
    grid-template-columns: 1fr;
  }

  .calendar-event-form {
    grid-template-columns: 1fr;
  }
}

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

  .app-sidebar {
    position: relative;
    height: auto;
  }

  .topbar,
  .dashboard-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-search {
    width: 100%;
    max-width: none;
  }

  .metrics-grid,
  .goal-grid,
  .goal-create-grid,
  .goal-edit-grid,
  .inline-task-row {
    grid-template-columns: 1fr;
  }

  .goal-edit-title {
    grid-column: auto;
  }

  .analytics-weekday-chart {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .sidebar-logo {
    font-size: 1.7rem;
  }

  .page-intro h1 {
    font-size: 2rem;
  }

  .section,
  .calendar-classic-section {
    padding: 18px;
    border-radius: 20px;
  }

  .nav-link {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .goal-edit-actions,
  .auth-actions,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-user {
    width: 100%;
  }

  .analytics-multi-select,
  .analytics-multi-menu {
    width: 100%;
  }

  .analytics-weekday-bars {
    gap: 10px;
  }

  .analytics-weekday-bar-label {
    font-size: 0.74rem;
  }
}

/* Restored classic layout */
body {
  background:
    radial-gradient(circle at top right, rgba(168, 197, 172, 0.16), transparent 24%),
    linear-gradient(180deg, #fcfefb 0%, #f2f8f1 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: 20px 0 28px;
}

.page-shell-wide {
  width: min(1560px, calc(100% - 32px));
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}

.site-brand h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.site-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  min-height: 0;
  padding: 10px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
  transform: none;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(168, 197, 172, 0.18);
  color: var(--text);
  border-color: rgba(115, 159, 123, 0.4);
}

.nav-link-mark {
  display: none;
}

.login-button {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.dashboard-main {
  gap: 14px;
}

.dashboard-main .section,
.analytics-main .section {
  margin-top: 0;
}

.section {
  padding: 18px;
  border-radius: 28px;
}

.section-heading {
  align-items: end;
  margin-bottom: 10px;
}

.section-filters {
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  min-height: 88px;
  padding: 14px;
  border-radius: 22px;
}

.metric-card::before {
  width: 100%;
  height: 3px;
}

.metric-card h3 {
  margin: 0;
  padding-left: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-soft);
}

.metric-values {
  gap: 8px;
  margin-top: 4px;
  padding-left: 0;
}

.metric-value {
  font-size: 1.42rem;
}

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

.goal-card {
  padding: 24px;
  border-radius: 22px;
}

.goal-create-form {
  margin-bottom: 14px;
  padding: 14px;
}

.backlog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.calendar-classic-section {
  padding: 16px;
}

.analytics-main {
  gap: 14px;
}

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

@media (max-width: 960px) {
  .goal-grid,
  .metrics-grid,
  .analytics-overview-grid,
  .analytics-overview-grid-compact,
  .calendar-classic-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-header {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-actions {
    width: 100%;
    align-items: flex-start;
  }

  .section-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .section {
    padding: 16px;
    border-radius: 18px;
  }

  .goal-create-grid,
  .goal-edit-grid,
  .metrics-grid,
  .inline-task-row,
  .calendar-event-form,
  .goal-grid {
    grid-template-columns: 1fr;
  }

  .goal-edit-title {
    grid-column: auto;
  }

  .goal-edit-actions,
  .auth-actions {
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .ai-coach-letter,
  .ai-coach-score-card,
  .ai-coach-context-card {
    padding: 16px;
    border-radius: 20px;
  }
}

/* Design system: Personal Dashboard / Composed */
.dashboard-theme {
  --ds-bg: #f9f9f8;
  --ds-surface: #ffffff;
  --ds-surface-low: #f3f4f3;
  --ds-surface-mid: #edeeed;
  --ds-surface-high: #e7e8e7;
  --ds-surface-highest: #e1e3e2;
  --ds-text: #191c1c;
  --ds-text-soft: #59655e;
  --ds-primary: #4a654e;
  --ds-primary-strong: #334d38;
  --ds-primary-soft: #8ba88e;
  --ds-primary-fixed: #cceace;
  --ds-secondary-fixed: #d9e6dc;
  --ds-danger: #ba1a1a;
  --ds-danger-soft: #ffdad6;
  --ds-outline: #c2c8c0;
  --ds-shadow: 0 20px 40px rgba(139, 168, 142, 0.04);
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: "Inter", sans-serif;
}

.dashboard-theme .workspace-shell {
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 100vh;
}

.dashboard-theme .side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  background: #ffffff;
  border-right: 1px solid rgba(139, 168, 142, 0.12);
  box-shadow: 20px 0 40px rgba(139, 168, 142, 0.04);
  z-index: 30;
}

.dashboard-theme .rail-logo {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0f4b34;
  letter-spacing: -0.06em;
}

.dashboard-theme .rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.dashboard-theme .rail-link {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #98a19c;
  position: relative;
}

.dashboard-theme .rail-link::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.dashboard-theme .rail-link:hover {
  background: rgba(139, 168, 142, 0.08);
  color: var(--ds-primary);
}

.dashboard-theme .rail-link.is-active {
  color: var(--ds-primary-soft);
  background: transparent;
}

.dashboard-theme .rail-link.is-active::after {
  background: var(--ds-primary-soft);
}

.dashboard-theme .rail-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--ds-primary);
  background: rgba(139, 168, 142, 0.1);
}

.dashboard-theme .icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.dashboard-theme .rail-link .icon-svg,
.dashboard-theme .rail-muted .icon-svg {
  width: 24px;
  height: 24px;
}

.dashboard-theme .rail-muted {
  color: #98a19c;
}

.dashboard-theme .rail-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dashboard-theme .rail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-secondary-fixed);
  color: var(--ds-primary);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}

.dashboard-theme .workspace-main {
  margin-left: 80px;
  min-width: 0;
}

.dashboard-theme .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 168, 142, 0.12);
}

.dashboard-theme .workspace-topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-theme .workspace-topbar-title strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f4b34;
  letter-spacing: -0.04em;
}

.dashboard-theme .workspace-topbar-title span {
  color: #8b938d;
  font-size: 1rem;
}

.dashboard-theme .workspace-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-theme .workspace-search {
  position: relative;
  display: flex;
  align-items: center;
}

.dashboard-theme .workspace-search-icon {
  position: absolute;
  left: 14px;
  color: #98a19c;
  width: 18px;
  height: 18px;
}

.dashboard-theme .workspace-search input {
  width: 290px;
  height: 42px;
  padding: 0 16px 0 40px;
  border: none;
  border-radius: 999px;
  background: var(--ds-surface-low);
  color: var(--ds-text);
  font-size: 0.98rem;
  outline: none;
}

.dashboard-theme .workspace-search input:focus {
  box-shadow: 0 0 0 2px rgba(139, 168, 142, 0.16);
}

.dashboard-theme .workspace-icon-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7b807c;
  cursor: pointer;
}

.dashboard-theme .workspace-icon-button .icon-svg {
  width: 18px;
  height: 18px;
}

.dashboard-theme .workspace-icon-button:hover {
  background: rgba(139, 168, 142, 0.08);
  color: var(--ds-primary);
}

.dashboard-theme .workspace-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 6px;
}

.dashboard-theme .workspace-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 168, 142, 0.28), rgba(74, 101, 78, 0.18));
  color: var(--ds-primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(139, 168, 142, 0.16);
}

.dashboard-theme .workspace-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-theme .workspace-user-meta strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ds-primary-strong);
  line-height: 1.1;
}

.dashboard-theme .workspace-user-meta span {
  color: #8b938d;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-theme .topbar-login {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ds-primary);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(74, 101, 78, 0.14);
}

.dashboard-theme .workspace-content {
  padding: 36px 40px 40px;
}

.dashboard-theme .page-shell,
.dashboard-theme .page-shell-wide {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dashboard-theme .dashboard-main,
.dashboard-theme .analytics-main {
  gap: 24px;
}

.dashboard-theme .hero-card,
.dashboard-theme .section,
.dashboard-theme .goal-card,
.dashboard-theme .metric-card,
.dashboard-theme .analytics-card,
.dashboard-theme .calendar-classic-shell,
.dashboard-theme .calendar-month-sidebar,
.dashboard-theme .auth-dialog,
.dashboard-theme .backlog-slot-cell,
.dashboard-theme .backlog-column-header,
.dashboard-theme .analytics-wheel-card,
.dashboard-theme .calendar-selected-event,
.dashboard-theme .calendar-month-event {
  background: var(--ds-surface);
  border: 1px solid rgba(139, 168, 142, 0.08);
  box-shadow: var(--ds-shadow);
}

.dashboard-theme .dashboard-hero {
  padding: 34px 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(204, 234, 206, 0.48), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(139, 168, 142, 0.1);
  box-shadow: 0 18px 36px rgba(139, 168, 142, 0.06);
}

.dashboard-theme .dashboard-hero-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.dashboard-theme .dashboard-hero-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ds-text-soft);
  font-size: 1.15rem;
}

.dashboard-theme .dashboard-hero-compact .dashboard-hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
}

.dashboard-theme .hero-card-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-theme .hero-card-actions {
  display: flex;
  gap: 12px;
}

.dashboard-theme .hero-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.dashboard-theme .section {
  padding: 30px;
  border-radius: 24px;
}

.dashboard-theme .section-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}

.dashboard-theme .section-heading-stack {
  gap: 20px;
}

.dashboard-theme .dashboard-section-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.95rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.dashboard-theme .section-kicker,
.dashboard-theme .chip-filter-label,
.dashboard-theme .auth-kicker,
.dashboard-theme .analytics-filter-label,
.dashboard-theme .calendar-classic-kicker,
.dashboard-theme .calendar-day-panel-kicker,
.dashboard-theme .calendar-picker-label,
.dashboard-theme .task-meta-label,
.dashboard-theme .analytics-card-label {
  margin: 0 0 10px;
  color: var(--ds-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-theme .quarter-filter span {
  color: var(--ds-text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.dashboard-theme .quarter-filter select,
.dashboard-theme .analytics-multi-trigger,
.dashboard-theme .goal-create-form input,
.dashboard-theme .goal-create-form select,
.dashboard-theme .goal-edit-input,
.dashboard-theme .goal-edit-select,
.dashboard-theme .metric-input,
.dashboard-theme .auth-field input,
.dashboard-theme .auth-field select,
.dashboard-theme .calendar-event-form input,
.dashboard-theme .calendar-event-form select,
.dashboard-theme .inline-task-input,
.dashboard-theme .inline-task-row select,
.dashboard-theme .task-status-select {
  background: var(--ds-surface-low);
  border: 1px solid rgba(139, 168, 142, 0.1);
  border-radius: 14px;
}

.dashboard-theme .quarter-filter select,
.dashboard-theme .goal-create-form input,
.dashboard-theme .goal-create-form select,
.dashboard-theme .goal-edit-input,
.dashboard-theme .goal-edit-select,
.dashboard-theme .metric-input,
.dashboard-theme .auth-field input,
.dashboard-theme .auth-field select,
.dashboard-theme .calendar-event-form input,
.dashboard-theme .calendar-event-form select,
.dashboard-theme .inline-task-input,
.dashboard-theme .inline-task-row select {
  min-height: 44px;
  padding: 0 14px;
}

.dashboard-theme .metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-theme .metric-card {
  border-radius: 20px;
  padding: 26px;
  min-height: 144px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.dashboard-theme .metric-card::before {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--ds-primary-soft) 0%, var(--ds-primary) 100%);
}

.dashboard-theme .metric-card h3 {
  margin: 0 0 18px;
  padding-left: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ds-text);
}

.dashboard-theme .metric-values {
  gap: 20px;
  padding-left: 0;
}

.dashboard-theme .metric-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  color: var(--ds-primary);
}

.dashboard-theme .metric-value-target {
  color: var(--ds-text);
}

.dashboard-theme .goal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-theme .goal-card {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.dashboard-theme .goal-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.dashboard-theme .goal-meta {
  color: var(--ds-primary);
}

.dashboard-theme .filter-chip {
  min-height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--ds-surface-low);
  color: var(--ds-text-soft);
  font-weight: 600;
}

.dashboard-theme .filter-chip.is-active {
  background: rgba(139, 168, 142, 0.18);
  color: var(--ds-primary);
}

.dashboard-theme .form-action-button,
.dashboard-theme .login-button,
.dashboard-theme .calendar-event-submit,
.dashboard-theme .inline-action-button.is-primary {
  background: var(--ds-primary);
  color: #ffffff;
  border-radius: 14px;
  border: none;
  box-shadow: 0 12px 24px rgba(74, 101, 78, 0.12);
}

.dashboard-theme .ghost-button,
.dashboard-theme .calendar-event-cancel,
.dashboard-theme .inline-action-button {
  border-radius: 14px;
  background: var(--ds-secondary-fixed);
  color: var(--ds-primary);
  border: none;
}

.dashboard-theme .backlog-day-add-button {
  background: var(--ds-secondary-fixed);
  border: none;
  border-radius: 14px;
  color: var(--ds-primary);
  font-weight: 600;
}

.dashboard-theme .backlog-column-header,
.dashboard-theme .calendar-classic-topbar,
.dashboard-theme .calendar-day-panel {
  background: var(--ds-surface);
}

.dashboard-theme .task-card {
  background: transparent;
}

.dashboard-theme .task-card.is-done {
  background: rgba(139, 168, 142, 0.12);
}

.dashboard-theme .task-badge {
  font-weight: 600;
}

.dashboard-theme .status-done {
  background: rgba(139, 168, 142, 0.18);
  color: var(--ds-primary);
}

.dashboard-theme .status-progress {
  background: rgba(204, 234, 206, 0.8);
  color: var(--ds-primary-strong);
}

.dashboard-theme .status-planned {
  background: var(--ds-surface-high);
  color: var(--ds-text-soft);
}

.dashboard-theme .calendar-classic-shell,
.dashboard-theme .calendar-month-sidebar {
  border-radius: 24px;
}

.dashboard-theme .calendar-nav-button {
  border: none;
  background: var(--ds-surface-low);
  border-radius: 12px;
}

.dashboard-theme .calendar-classic-day.is-selected:not(.is-today) {
  background: rgba(139, 168, 142, 0.16);
}

.dashboard-theme .calendar-classic-day.is-today {
  background: var(--ds-primary);
}

.dashboard-theme .calendar-selected-event.is-deadline,
.dashboard-theme .calendar-month-event.is-deadline,
.dashboard-theme .calendar-classic-day.is-deadline:not(.is-today) {
  background: rgba(255, 218, 214, 0.42);
}

.dashboard-theme .analytics-card {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.dashboard-theme .analytics-card-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--ds-primary);
}

.dashboard-theme .analytics-wheel-card {
  border-radius: 20px;
}

.dashboard-theme .analytics-weekday-bar-fill {
  background: linear-gradient(180deg, #c6d3c7 0%, #8ba88e 100%);
}

.dashboard-theme .auth-dialog {
  background: #ffffff;
}

.dashboard-theme .rail-link,
.dashboard-theme .workspace-icon-button,
.dashboard-theme .nav-link,
.dashboard-theme .ghost-button,
.dashboard-theme .form-action-button,
.dashboard-theme .login-button,
.dashboard-theme .calendar-event-action,
.dashboard-theme .backlog-day-add-button {
  transition: all 0.2s ease;
}

.dashboard-theme .calendar-event-action {
  border: none;
  background: var(--ds-surface-low);
  color: var(--ds-text-soft);
}

.dashboard-theme .calendar-event-action.is-danger {
  color: var(--ds-danger);
  background: rgba(255, 218, 214, 0.42);
}

.dashboard-theme .dashboard-hero-compact {
  margin-bottom: -4px;
}

@media (max-width: 1180px) {
  .dashboard-theme .metrics-grid,
  .dashboard-theme .goal-grid,
  .dashboard-theme .analytics-overview-grid,
  .dashboard-theme .analytics-overview-grid-compact,
  .dashboard-theme .calendar-classic-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-theme .workspace-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-theme .side-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .dashboard-theme .rail-nav,
  .dashboard-theme .rail-footer {
    flex-direction: row;
    gap: 10px;
  }

  .dashboard-theme .rail-mark,
  .dashboard-theme .workspace-user-meta {
    display: none;
  }

  .dashboard-theme .rail-link::after {
    display: none;
  }

  .dashboard-theme .workspace-main {
    margin-left: 0;
  }

  .dashboard-theme .workspace-topbar {
    padding: 16px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-theme .workspace-topbar-actions,
  .dashboard-theme .hero-card-row,
  .dashboard-theme .section-heading {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-theme .workspace-user-chip {
    padding-left: 0;
  }

  .dashboard-theme .workspace-search input {
    width: 100%;
  }

  .dashboard-theme .workspace-content {
    padding: 22px 16px 28px;
  }

  .dashboard-theme .metrics-grid,
  .dashboard-theme .goal-grid,
  .dashboard-theme .goal-create-grid,
  .dashboard-theme .goal-edit-grid,
  .dashboard-theme .inline-task-row {
    grid-template-columns: 1fr;
  }
}

.ai-assistant-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  min-height: 54px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #154212;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(21, 66, 18, 0.22);
}

.ai-assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.ai-assistant-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 12, 0.32);
  backdrop-filter: blur(6px);
}

.ai-assistant-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 48px auto;
  padding: 22px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(21, 66, 18, 0.16);
}

.ai-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-assistant-header h2 {
  margin: 4px 0 0;
  font-size: 1.7rem;
}

.ai-assistant-kicker {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.ai-assistant-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--surface-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ai-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 16px;
  padding: 4px 2px;
}

.ai-message {
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ai-message-user {
  align-self: flex-end;
  background: #154212;
  color: #ffffff;
}

.ai-message-assistant {
  align-self: flex-start;
  background: #f2f7f0;
  color: var(--text);
  border: 1px solid rgba(21, 66, 18, 0.08);
}

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

.ai-assistant-form textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: #fbfdf9;
  color: var(--text);
}

.ai-assistant-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-assistant-status {
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .ai-assistant-dialog {
    margin: 16px auto;
    padding: 16px;
  }

  .ai-assistant-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-assistant-toggle {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }
}

.health-main {
  display: grid;
  gap: 18px;
}

.health-import-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.health-import-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f7f0;
  color: var(--text-soft);
  font-weight: 700;
}

.health-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.health-file-input {
  flex: 1;
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: #fbfdf9;
  color: var(--text);
}

.health-import-status {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f2f7f0;
  color: var(--text-soft);
  font-weight: 600;
}

.health-import-status.is-error {
  background: #fff0ef;
  color: #b42318;
}

.health-range-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.health-summary-card,
.health-chart-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: #ffffff;
}

.health-summary-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.health-summary-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
}

.health-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.health-chart-card h3 {
  margin: 0 0 12px;
}

.health-chart {
  min-height: 240px;
}

.health-chart-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.health-axis {
  stroke: #d9e5d7;
  stroke-width: 1.5;
}

.health-line {
  stroke: #154212;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-line-secondary {
  stroke: #6d9f47;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-dot {
  fill: #154212;
}

.health-bar {
  fill: #154212;
  opacity: 0.86;
}

.health-label {
  fill: #667267;
  font-size: 12px;
  font-weight: 700;
}

.health-dual-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.health-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #154212;
}

.health-legend-dot-secondary {
  background: #6d9f47;
}

.health-chart-empty,
.health-empty-row {
  color: var(--text-soft);
  text-align: center;
}

.health-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px dashed var(--surface-line);
  border-radius: 18px;
  background: #fbfdf9;
}

.health-table-wrap {
  overflow-x: auto;
}

.health-table {
  width: 100%;
  border-collapse: collapse;
}

.health-table th,
.health-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2eb;
  text-align: left;
}

.health-table th {
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .health-summary-grid,
  .health-charts-grid {
    grid-template-columns: 1fr;
  }
}

.books-main {
  display: grid;
  gap: 18px;
}

.books-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 12px;
}

.books-add-form input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: #fbfdf9;
  color: var(--text);
}

.books-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.books-column {
  min-height: 420px;
}

.books-column-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.books-column-header h3 {
  margin: 4px 0 0;
  font-size: 1.55rem;
}

.books-count {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f7f0;
  color: var(--text-soft);
  font-weight: 800;
}

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

.books-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: #ffffff;
}

.books-card-copy h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.books-card-copy p {
  margin: 0;
  color: var(--text-soft);
}

.books-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.books-delete-button {
  color: #b42318;
}

.books-empty {
  padding: 18px;
  border: 1px dashed var(--surface-line);
  border-radius: 18px;
  color: var(--text-soft);
  text-align: center;
  background: #fbfdf9;
}

@media (max-width: 960px) {
  .books-board,
  .books-add-form {
    grid-template-columns: 1fr;
  }
}

.landing-page,
.auth-route-page,
.app-page,
.profile-page {
  padding: 0 0 40px;
}

.landing-main,
.auth-route-main,
.app-dashboard-main,
.profile-main {
  display: grid;
  gap: 20px;
}

.landing-header,
.app-page-header {
  margin-bottom: 12px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.landing-hero-copy,
.landing-hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-description,
.auth-route-copy,
.app-hero-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-hero-card,
.landing-benefit-card,
.landing-step-card,
.landing-pricing-card,
.app-tool-card,
.recent-checkin-card {
  padding: 20px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: #fbfdf9;
}

.landing-feature-list,
.landing-pricing-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.landing-benefits-grid,
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-benefit-card h3,
.landing-step-card h3,
.landing-pricing-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.landing-benefit-card p,
.landing-step-card p,
.landing-pricing-card span {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

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

.landing-step-card strong {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(188, 240, 174, 0.3);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.landing-pricing-card-accent {
  background: linear-gradient(180deg, rgba(188, 240, 174, 0.16), #fbfdf9);
}

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

.landing-pricing-head span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(204, 240, 95, 0.26);
  color: var(--primary);
  font-weight: 700;
}

.auth-route-main {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) 0;
  justify-items: center;
}

.auth-route-card {
  max-width: 620px;
  width: 100%;
}

.auth-page-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-page-field input {
  width: 100%;
}

.app-dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

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

.daily-checkin-form {
  display: grid;
  gap: 14px;
}

.daily-checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: #fbfdf9;
  color: var(--text);
}

.app-textarea:focus {
  outline: none;
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.recent-checkins-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.recent-checkin-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.recent-checkin-head span,
.recent-checkin-card p,
.app-tool-card span {
  color: var(--text-soft);
}

.recent-checkin-card p {
  margin: 0;
  line-height: 1.6;
}

.app-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-tool-card {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(45, 90, 39, 0.18);
}

.app-tool-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.profile-form {
  max-width: 620px;
}

.auth-page-main,
.projects-main {
  display: grid;
  gap: 18px;
}

.auth-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-page-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: #fbfdf9;
}

.auth-page-form,
.projects-create-form {
  display: grid;
  gap: 12px;
}

.auth-page-form input,
.auth-page-form select,
.projects-create-form input,
.project-task-form input,
.project-task-form select,
.project-task-actions select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  background: var(--surface-low);
  color: var(--text);
}

.auth-page-form input:focus,
.auth-page-form select:focus,
.projects-create-form input:focus,
.project-task-form input:focus,
.project-task-form select:focus,
.project-task-actions select:focus {
  outline: none;
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.auth-status-box {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--surface-line);
  background: #f7fbf6;
  color: var(--text-soft);
  font-weight: 600;
}

.auth-status-box.is-error {
  background: #fff0ef;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.14);
}

.auth-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.auth-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.projects-grid {
  display: grid;
  gap: 16px;
}

.projects-create-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
}

.project-card {
  display: grid;
  gap: 18px;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-card-header h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.project-card-header p {
  margin: 0;
  color: var(--text-soft);
}

.project-card-actions,
.project-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-task-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: center;
}

.project-tasks {
  display: grid;
  gap: 12px;
}

.project-task-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  background: #fbfdf9;
}

.project-task-copy {
  min-width: 0;
}

.project-task-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.project-task-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .landing-hero,
  .landing-benefits-grid,
  .landing-pricing-grid,
  .landing-steps,
  .app-dashboard-grid,
  .app-overview-grid,
  .daily-checkin-grid,
  .app-tools-grid,
  .auth-page-grid,
  .projects-create-form,
  .project-task-form {
    grid-template-columns: 1fr;
  }

  .project-card-header,
  .project-task-row {
    flex-direction: column;
  }
}

.today-page {
  padding: 0 0 40px;
}

.today-main {
  display: grid;
  gap: 20px;
}

.today-hero-card,
.today-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.today-summary-card {
  display: grid;
  gap: 24px;
}

.today-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.today-summary-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.today-readiness-pill {
  min-width: 156px;
  padding: 14px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(188, 240, 174, 0.18), rgba(255, 255, 255, 0.96));
}

.today-readiness-pill span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.today-readiness-pill strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.today-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.today-summary-panel {
  padding: 20px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: #fbfdf9;
}

.today-summary-label {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.today-summary-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.today-summary-status {
  display: inline-flex;
  margin-top: 2px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.today-summary-status[data-state="excellent"] {
  color: #2d6b38;
}

.today-summary-status[data-state="stable"] {
  color: #355f2f;
}

.today-summary-status[data-state="heavy"] {
  color: #7b6b12;
}

.today-summary-status[data-state="risk"] {
  color: #b42318;
}

.today-summary-warning {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 218, 214, 0.72);
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 700;
}

.today-summary-copy,
.today-summary-empty {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.today-guidance-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.today-top-tasks {
  display: grid;
  gap: 12px;
}

.today-top-task-card {
  padding: 14px 16px;
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.today-top-task-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.today-top-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-top-task-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.today-hero-copy,
.today-section-copy {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.today-status-box {
  margin-top: -4px;
}

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

.today-energy-map-card {
  margin-top: 18px;
}

.today-energy-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.today-energy-slot-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: #fbfdf9;
  display: grid;
  gap: 10px;
}

.today-energy-slot-card strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.today-energy-slot-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.today-energy-map-warning {
  margin-top: 16px;
}

.today-task-create-card {
  margin-top: 18px;
}

.today-task-create-form {
  display: grid;
  gap: 14px;
}

.today-task-create-form input,
.today-task-create-form select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  background: var(--surface-low);
  color: var(--text);
}

.today-task-create-form input:focus,
.today-task-create-form select:focus {
  outline: none;
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.today-task-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.today-guard-dialog {
  max-width: 640px;
}

.today-checkin-form,
.today-task-form,
.today-task-edit-form {
  display: grid;
  gap: 14px;
}

.today-range-field {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  background: #fbfdf9;
}

.today-range-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.today-range-copy strong {
  font-size: 1rem;
}

.today-range-copy span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.today-range-control {
  display: flex;
  align-items: center;
  gap: 14px;
}

.today-range-control input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.today-range-control output {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(188, 240, 174, 0.26);
  color: var(--primary);
  font-weight: 800;
}

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

.today-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.today-focus-list,
.today-tasks-list,
.today-backlog-picker,
.today-coach-actions {
  display: grid;
  gap: 12px;
}

.today-focus-item-card,
.today-task-card,
.today-backlog-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 22px;
  background: #fbfdf9;
}

.today-focus-item-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.today-focus-item-copy strong,
.today-backlog-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.today-focus-meta,
.today-task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-focus-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.today-focus-remove {
  min-height: 40px;
}

.today-capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.today-capacity-head strong {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.today-capacity-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.today-capacity-badge[data-state="excellent"] {
  background: rgba(111, 170, 118, 0.18);
  color: #2d6b38;
}

.today-capacity-badge[data-state="stable"] {
  background: rgba(220, 235, 221, 0.82);
  color: #355f2f;
}

.today-capacity-badge[data-state="heavy"] {
  background: rgba(204, 240, 95, 0.28);
  color: #536600;
}

.today-capacity-badge[data-state="risk"] {
  background: rgba(255, 218, 214, 0.72);
  color: #b42318;
}

.today-capacity-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e8efe7;
  overflow: hidden;
}

.today-capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6faa76 0%, #2d5a27 100%);
}

.today-capacity-bar span[data-state="stable"] {
  background: linear-gradient(90deg, #9fc69d 0%, #4d7c49 100%);
}

.today-capacity-bar span[data-state="heavy"] {
  background: linear-gradient(90deg, #cce85f 0%, #8f9d11 100%);
}

.today-capacity-bar span[data-state="risk"] {
  background: linear-gradient(90deg, #ffb4ab 0%, #c03f35 100%);
}

.today-capacity-recommendation {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-line);
  display: grid;
  gap: 8px;
}

.today-capacity-recommendation strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.today-capacity-note {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.today-energy-debt-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-line);
  display: grid;
  gap: 8px;
}

.today-energy-debt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-energy-debt-head strong {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ai-coach-main {
  display: grid;
  gap: 18px;
}

.ai-coach-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(188, 240, 174, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 245, 0.97) 100%);
}

.ai-coach-hero-copy {
  display: grid;
  gap: 10px;
}

.ai-coach-plan-row {
  justify-content: flex-start;
  gap: 12px;
}

.ai-coach-hero-side {
  display: grid;
  gap: 14px;
}

.ai-coach-score-card,
.ai-coach-context-card {
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(21, 66, 18, 0.05);
}

.ai-coach-score-card strong,
.ai-coach-context-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ai-coach-score-card p,
.ai-coach-context-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.ai-coach-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.ai-coach-actions-card,
.ai-coach-response-card {
  min-height: 100%;
}

.ai-coach-actions {
  display: grid;
  gap: 10px;
}

.ai-coach-action-button {
  justify-content: flex-start;
  text-align: left;
  min-height: 52px;
  padding: 0 18px;
}

.ai-coach-action-button.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 14px 26px rgba(21, 66, 18, 0.14);
}

.ai-coach-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ai-coach-response-card {
  display: grid;
  gap: 12px;
}

.ai-coach-letter {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--surface-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 246, 0.97) 100%);
  box-shadow: 0 12px 28px rgba(21, 66, 18, 0.05);
}

.ai-coach-letter p,
.ai-coach-letter li {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1rem;
}

.ai-coach-letter p {
  margin: 0;
}

.ai-coach-letter ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.today-coach-output {
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(188, 240, 174, 0.12), #fbfdf9);
  color: var(--text);
  line-height: 1.7;
}

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

.today-task-form > input,
.today-task-form > select,
.today-task-edit-form > input,
.today-task-edit-form > select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  background: var(--surface-low);
  color: var(--text);
}

.today-task-form > input:focus,
.today-task-form > select:focus,
.today-task-edit-form > input:focus,
.today-task-edit-form > select:focus {
  outline: none;
  border-color: #3e8e41;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12);
}

.today-checkbox-field {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  background: #fbfdf9;
  font-weight: 600;
}

.today-task-card.is-done {
  background: linear-gradient(180deg, rgba(188, 240, 174, 0.18) 0%, #fbfdf9 100%);
}

.today-task-card-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.today-task-card-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.today-task-card-copy p,
.today-backlog-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.today-task-card-actions,
.today-backlog-card-actions,
.today-task-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.today-focus-toggle {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.today-focus-toggle input {
  margin: 0;
}

.today-task-edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-line);
}

.today-task-done-check {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.today-task-done-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.today-task-done-check span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface-low);
}

.today-task-done-check input:checked + span {
  background: rgba(188, 240, 174, 0.28);
  border-color: rgba(45, 90, 39, 0.35);
}

.today-task-done-check input:checked + span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  top: 7px;
  left: 11px;
}

.today-backlog-picker[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .today-grid,
  .today-energy-map-grid,
  .today-task-create-grid,
  .today-checkin-selects,
  .today-task-form,
  .today-task-card-head {
    grid-template-columns: 1fr;
  }

  .today-hero-card,
  .today-summary-head,
  .today-capacity-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-focus-item-card {
    grid-template-columns: 1fr;
  }

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

  .today-summary-badges {
    justify-content: flex-start;
  }
}

.analytics-health-main {
  gap: 18px;
}

.analytics-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analytics-period-panel {
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analytics-period-select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--surface-line);
  background: rgba(245, 248, 240, 0.88);
  color: var(--text);
  font: inherit;
}

.analytics-inline-status {
  margin: 0;
}

.analytics-overview-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analytics-card-state.is-normal {
  border-color: rgba(93, 143, 96, 0.22);
}

.analytics-card-state.is-high {
  border-color: rgba(214, 123, 92, 0.22);
}

.analytics-card-state.is-risk {
  border-color: rgba(188, 87, 87, 0.26);
}

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

.analytics-row-single {
  grid-template-columns: 1fr;
}

.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.analytics-dashboard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.analytics-chart-card,
.analytics-insight-card,
.analytics-type-card,
.analytics-overload-card,
.analytics-empty-card {
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.analytics-svg-chart,
.analytics-bars-chart {
  min-height: 320px;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.analytics-svg {
  width: 100%;
  height: auto;
}

.analytics-svg-grid-line {
  stroke: rgba(21, 66, 18, 0.12);
  stroke-width: 1;
}

.analytics-svg-axis-label {
  fill: var(--text-soft);
  font-size: 11px;
  text-anchor: middle;
}

.analytics-inline-note {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.analytics-load-bars {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.analytics-load-bar-card {
  min-height: 240px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
}

.analytics-load-bar-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.analytics-load-bar-top strong {
  font-size: 1.1rem;
  line-height: 1;
}

.analytics-load-bar-top span,
.analytics-load-bar-meta small,
.analytics-overload-head span {
  color: var(--text-soft);
}

.analytics-load-bar-track {
  min-height: 170px;
  border-radius: 18px;
  background: rgba(211, 221, 210, 0.35);
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 12px 0;
}

.analytics-load-bar-fill {
  width: min(44px, 68%);
  border-radius: 14px;
  background: linear-gradient(180deg, #9bb69c 0%, #5d8f60 100%);
}

.analytics-load-bar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.analytics-load-bar-meta span,
.analytics-load-bar-meta small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.analytics-load-bar-meta span {
  font-weight: 700;
}

.analytics-load-bar-meta small {
  font-size: 0.74rem;
  line-height: 1.15;
}

@media (max-width: 1180px) {
  .analytics-load-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .analytics-load-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.analytics-stack-list,
.analytics-type-grid,
.analytics-overload-grid {
  display: grid;
  gap: 12px;
}

.analytics-dashboard-card .analytics-stack-list,
.analytics-dashboard-card .analytics-type-grid,
.analytics-dashboard-card .analytics-overload-grid {
  flex: 1;
  align-content: start;
}

.analytics-insight-card,
.analytics-type-card,
.analytics-overload-card,
.analytics-empty-card {
  padding: 16px 18px;
}

.analytics-insight-card p,
.analytics-empty-card p {
  margin: 0;
}

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

.analytics-type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-type-metrics {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

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

.analytics-overload-summary {
  grid-column: 1 / -1;
}

.analytics-dashboard-card .analytics-inline-note {
  margin-top: auto;
  padding-top: 14px;
}

.analytics-overload-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.analytics-overload-score {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.analytics-overload-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.analytics-overload-badge.is-normal {
  background: rgba(93, 143, 96, 0.14);
  color: #3c6b3f;
}

.analytics-overload-badge.is-high {
  background: rgba(214, 123, 92, 0.14);
  color: #ab5f47;
}

.analytics-overload-badge.is-risk {
  background: rgba(188, 87, 87, 0.14);
  color: #aa4343;
}

.analytics-overload-card.is-normal {
  border-color: rgba(93, 143, 96, 0.24);
}

.analytics-overload-card.is-high {
  border-color: rgba(214, 123, 92, 0.24);
}

.analytics-overload-card.is-risk {
  border-color: rgba(188, 87, 87, 0.24);
}

.analytics-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.analytics-empty-link {
  text-decoration: none;
}

.analytics-v0-main {
  gap: 22px;
}

.analytics-v0-hero {
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(188, 240, 174, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 246, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(21, 66, 18, 0.08);
}

.analytics-v0-hero-copy {
  max-width: 760px;
}

.analytics-v0-control-card {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(239, 245, 236, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(21, 66, 18, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.analytics-v0-control-top,
.analytics-v0-metric-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-v0-control-top {
  margin-bottom: 10px;
}

.analytics-v0-control-icon,
.analytics-v0-metric-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(188, 240, 174, 0.9), rgba(93, 143, 96, 0.9));
  color: #0f3513;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.analytics-v0-control-title {
  font-size: 1rem;
  line-height: 1.3;
}

.analytics-v0-status {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(21, 66, 18, 0.08);
}

.analytics-v0-top-grid {
  gap: 18px;
}

.analytics-weekly-insights-panel {
  padding-top: 28px;
}

.analytics-weekly-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-weekly-insight-card {
  padding: 18px 20px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 246, 0.96) 100%);
  box-shadow: 0 12px 28px rgba(21, 66, 18, 0.05);
  display: grid;
  gap: 10px;
}

.analytics-weekly-insight-card strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.analytics-weekly-insight-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.analytics-weekly-insight-card.is-normal {
  border-color: rgba(93, 143, 96, 0.22);
}

.analytics-weekly-insight-card.is-high {
  border-color: rgba(214, 123, 92, 0.22);
}

.analytics-weekly-insight-card.is-risk {
  border-color: rgba(188, 87, 87, 0.26);
}

.analytics-weekly-review-panel {
  padding-top: 28px;
}

.analytics-weekly-review-head {
  gap: 18px;
}

.analytics-weekly-review-button {
  flex: 0 0 auto;
}

.analytics-weekly-review-letter {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--surface-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 245, 0.97) 100%);
  box-shadow: 0 12px 28px rgba(21, 66, 18, 0.05);
}

.analytics-weekly-review-letter p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1rem;
}

.analytics-v0-metric-card {
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 243, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(21, 66, 18, 0.06);
}

.analytics-v0-metric-body {
  display: grid;
  gap: 10px;
}

.analytics-v0-metric-value {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.analytics-v0-metric-note {
  max-width: 24ch;
  line-height: 1.45;
}

.analytics-v0-mini-pill,
.analytics-v0-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(223, 231, 222, 0.78);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.analytics-v0-primary-row {
  align-items: stretch;
}

.analytics-v0-panel {
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 247, 0.97) 100%);
  box-shadow: 0 18px 40px rgba(21, 66, 18, 0.06);
}

.analytics-v0-heading {
  align-items: center;
}

.analytics-card-state.tone-energy .analytics-v0-metric-icon {
  background: linear-gradient(135deg, rgba(188, 240, 174, 0.98), rgba(122, 195, 124, 0.9));
}

.analytics-card-state.tone-stress .analytics-v0-metric-icon {
  background: linear-gradient(135deg, rgba(255, 220, 201, 0.98), rgba(214, 123, 92, 0.92));
}

.analytics-card-state.tone-focus .analytics-v0-metric-icon {
  background: linear-gradient(135deg, rgba(220, 232, 255, 0.98), rgba(122, 149, 201, 0.92));
}

.analytics-card-state.tone-risk .analytics-v0-metric-icon {
  background: linear-gradient(135deg, rgba(243, 248, 228, 0.98), rgba(197, 224, 98, 0.92));
}

.analytics-v0-type-card,
.analytics-v0-overload-card,
.analytics-v0-overload-summary,
.analytics-insight-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 246, 0.96) 100%);
}

@media (max-width: 960px) {
  .analytics-hero-card,
  .analytics-dashboard-grid,
  .analytics-row-balanced,
  .analytics-overview-grid-4,
  .analytics-weekly-insights-grid,
  .analytics-type-grid,
  .analytics-overload-grid {
    grid-template-columns: 1fr;
  }

  .analytics-hero-card {
    flex-direction: column;
  }

  .analytics-v0-panel,
  .analytics-v0-hero,
  .analytics-v0-metric-card {
    padding: 22px;
  }

  .analytics-v0-heading {
    align-items: flex-start;
  }
}

.onboarding-main {
  display: grid;
  gap: 22px;
}

.onboarding-hero,
.onboarding-progress-card,
.onboarding-step-card {
  padding: 28px;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.onboarding-status-box {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-progress-step {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 8px;
}

.onboarding-progress-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(21, 66, 18, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
}

.onboarding-progress-step strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.onboarding-progress-step.is-active {
  border-color: rgba(93, 143, 96, 0.28);
  background: linear-gradient(180deg, rgba(240, 248, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 30px rgba(21, 66, 18, 0.06);
}

.onboarding-progress-step.is-complete span,
.onboarding-progress-step.is-active span {
  background: linear-gradient(135deg, rgba(188, 240, 174, 0.98), rgba(93, 143, 96, 0.92));
}

.onboarding-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.onboarding-choice-card,
.onboarding-focus-card {
  border: 1px solid var(--surface-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 246, 0.96) 100%);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-choice-card {
  min-height: 108px;
  padding: 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.onboarding-choice-card:hover,
.onboarding-focus-card:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 143, 96, 0.26);
  box-shadow: 0 12px 28px rgba(21, 66, 18, 0.05);
}

.onboarding-choice-card.is-selected,
.onboarding-focus-card.is-selected {
  border-color: rgba(93, 143, 96, 0.34);
  background: linear-gradient(180deg, rgba(240, 248, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.onboarding-task-preview,
.onboarding-focus-list,
.onboarding-summary-letter {
  margin-top: 18px;
}

.onboarding-inline-note,
.onboarding-task-card-preview,
.onboarding-focus-card,
.onboarding-summary-letter {
  padding: 18px 20px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 246, 0.96) 100%);
}

.onboarding-inline-note {
  color: var(--text-soft);
}

.onboarding-task-card-preview,
.onboarding-summary-letter {
  display: grid;
  gap: 12px;
}

.onboarding-task-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

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

.onboarding-focus-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  cursor: pointer;
}

.onboarding-focus-card input {
  margin-top: 4px;
}

.onboarding-summary-letter p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .onboarding-hero,
  .onboarding-progress,
  .onboarding-choice-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-hero,
  .onboarding-progress-card,
  .onboarding-step-card {
    padding: 22px;
  }
}

.pricing-page {
  gap: 24px;
}

.pricing-main {
  display: grid;
  gap: 24px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.pricing-hero-side {
  display: grid;
  gap: 14px;
}

.pricing-plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(93, 143, 96, 0.18);
  background: linear-gradient(180deg, rgba(243, 248, 241, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--primary-strong);
  font-weight: 700;
}

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

.pricing-card {
  display: grid;
  gap: 22px;
  min-height: 100%;
}

.pricing-card-pro {
  background: linear-gradient(180deg, rgba(245, 250, 243, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(93, 143, 96, 0.22);
  box-shadow: 0 18px 40px rgba(21, 66, 18, 0.05);
}

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

.pricing-card-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.pricing-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(223, 231, 222, 0.84);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card-badge-accent {
  background: linear-gradient(135deg, rgba(188, 240, 174, 0.98), rgba(122, 195, 124, 0.9));
}

.pricing-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-strong);
}

.pricing-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(93, 143, 96, 0.1);
}

.pricing-card-footer {
  margin-top: auto;
}

.pricing-compare-section {
  display: grid;
  gap: 18px;
}

.pricing-compare-grid {
  display: grid;
  gap: 12px;
}

.pricing-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(120px, 0.5fr));
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--surface-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 246, 0.96) 100%);
}

.pricing-compare-head {
  background: linear-gradient(180deg, rgba(240, 248, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--text-soft);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-compare-row strong {
  color: var(--text-strong);
}

.pricing-lock-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(93, 143, 96, 0.28);
  background: linear-gradient(180deg, rgba(248, 251, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.pricing-lock-card h3,
.pricing-lock-card p {
  margin: 0;
}

.pricing-lock-card p:last-of-type {
  color: var(--text-soft);
  line-height: 1.7;
}

.pricing-lock-link {
  width: fit-content;
}

.plan-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(21, 66, 18, 0.1);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.today-energy-debt-card.is-locked {
  background: linear-gradient(180deg, rgba(248, 251, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.today-energy-debt-card.is-locked .today-capacity-bar span {
  width: 42%;
  background: linear-gradient(90deg, rgba(93, 143, 96, 0.55), rgba(174, 199, 176, 0.5));
}

@media (max-width: 960px) {
  .pricing-hero,
  .pricing-grid,
  .pricing-compare-row {
    grid-template-columns: 1fr;
  }

  .pricing-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Unified navigation */
.public-header {
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.public-brand-link,
.sidebar-logo-link {
  color: inherit;
  text-decoration: none;
}

.public-brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 188px;
}

.public-brand-kicker,
.public-brand-title {
  display: block;
}

.public-brand-kicker {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.public-brand-title {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: 100%;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locale-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.locale-switcher.is-compact .locale-toggle {
  min-width: 74px;
  min-height: 44px;
  padding: 0 14px;
}

.locale-toggle {
  min-height: 40px;
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.locale-toggle:focus-visible,
.locale-option:focus-visible {
  outline: 2px solid rgba(93, 143, 96, 0.34);
  outline-offset: 2px;
}

.locale-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  z-index: 30;
}

.locale-option {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.locale-option:hover {
  background: rgba(21, 66, 18, 0.06);
}

.locale-option.is-active {
  background: rgba(188, 240, 174, 0.16);
  color: var(--primary);
}

.locale-check {
  color: var(--primary);
  font-weight: 800;
}

.public-nav-link {
  background: rgba(255, 255, 255, 0.72);
}

.public-action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(21, 66, 18, 0.06);
  border: 1px solid rgba(21, 66, 18, 0.08);
}

.public-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(21, 66, 18, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 24px 16px 18px;
  background: linear-gradient(180deg, rgba(14, 73, 50, 0.98) 0%, rgba(11, 59, 41, 0.98) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  padding: 8px 10px 4px;
}

.sidebar-logo-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-logo {
  color: var(--lime);
  font-size: 1.68rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.app-nav,
.app-sidebar-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-nav {
  flex: 1;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: 2px solid rgba(188, 240, 174, 0.35);
  outline-offset: 2px;
}

.app-nav-link.is-active {
  background: rgba(188, 240, 174, 0.18);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--lime);
}

.app-nav-link.is-utility {
  color: rgba(255, 255, 255, 0.68);
}

.app-nav-icon,
.app-user-menu-icon,
.app-user-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.app-nav-icon svg,
.app-user-menu-icon svg,
.app-user-chevron svg {
  width: 18px;
  height: 18px;
}

.app-main {
  min-width: 0;
  padding: 24px;
}

.app-content-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
}

/* Landing v3 */
.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  padding: 12px 0;
  transition: padding 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-header.is-scrolled {
  padding: 8px 0;
  background: rgba(248, 251, 246, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 66, 18, 0.08);
  box-shadow: 0 10px 30px rgba(18, 39, 20, 0.05);
}

.public-brand-wordmark {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.public-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
}

.landing-main-v3 {
  display: grid;
  gap: 110px;
  padding-bottom: 84px;
}

.landing-hero-v3,
.landing-founder-grid,
.landing-how-grid,
.landing-product-grid,
.landing-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.landing-hero-v3 {
  padding-top: 18px;
}

.landing-title-xl {
  max-width: 11.6ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.85rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.landing-description-lg {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.72;
}

.landing-support-copy {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.landing-actions-stacked-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-action-link.is-pending {
  opacity: 0.66;
  pointer-events: none;
}

.public-page .form-action-button.public-action-link,
.public-page .form-action-button.landing-action-link {
  border: none;
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-card);
}

.public-page .form-action-button.public-action-link:hover,
.public-page .form-action-button.landing-action-link:hover {
  background: var(--primary-strong);
  color: var(--surface);
  transform: translateY(-1px);
}

.public-page .form-action-button.public-action-link:active,
.public-page .form-action-button.landing-action-link:active {
  background: var(--primary-soft);
  color: var(--surface);
  transform: none;
}

.public-page .form-action-button.public-action-link:focus-visible,
.public-page .form-action-button.landing-action-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(62, 142, 65, 0.12), var(--shadow-card);
}

.public-page .form-action-button.public-action-link:disabled,
.public-page .form-action-button.landing-action-link:disabled,
.public-page .form-action-button.public-action-link[aria-disabled="true"],
.public-page .form-action-button.landing-action-link[aria-disabled="true"],
.public-page .form-action-button.public-action-link.is-pending,
.public-page .form-action-button.landing-action-link.is-pending {
  background: var(--surface-high);
  color: var(--text-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.landing-hero-visual,
.landing-product-showcase {
  position: relative;
}

.landing-shot-frame {
  position: relative;
  padding: 12px;
  border-radius: 32px;
  border: 1px solid rgba(21, 66, 18, 0.09);
  background:
    radial-gradient(circle at top right, rgba(192, 238, 186, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 246, 0.96));
  box-shadow: 0 24px 56px rgba(18, 39, 20, 0.07);
}

.landing-shot-frame-hero {
  transform: translateY(8px);
  width: min(100%, 1120px);
  margin-left: auto;
}

.landing-shot-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

.landing-shot-shell img {
  display: block;
  width: 100%;
  height: auto;
}

.locale-image {
  display: block;
}

.landing-floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 164px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(18, 39, 20, 0.08);
}

.landing-floating-card strong {
  color: var(--text-strong);
  font-size: 1.52rem;
  line-height: 1;
}

.landing-floating-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-floating-card p + p {
  color: var(--text-strong);
  font-weight: 700;
}

.landing-floating-card-primary {
  top: -18px;
  left: -22px;
}

.landing-floating-card-secondary {
  right: -18px;
  bottom: 28px;
  max-width: 260px;
}

.landing-floating-label,
.section-kicker {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-strip {
  margin-top: -36px;
}

.landing-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 28px;
  border-radius: 24px;
  border: 1px solid rgba(21, 66, 18, 0.07);
  background: linear-gradient(135deg, rgba(236, 245, 232, 0.96), rgba(250, 252, 249, 0.98));
}

.landing-strip-inner p {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 600;
}

.landing-strip-flow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--secondary);
  font-weight: 700;
}

.landing-story-section {
  display: grid;
  gap: 28px;
}

.landing-problem-section,
.landing-comparison-section,
.landing-use-cases-section,
.landing-story-section[id="pricing"] {
  padding: 12px 0;
}

.landing-founder-section {
  padding: 44px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(238, 246, 233, 0.96), rgba(249, 252, 247, 0.98));
  border: 1px solid rgba(21, 66, 18, 0.06);
}

.landing-product-section {
  padding: 18px 0;
}

.landing-section-intro {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.landing-section-intro p,
.landing-product-copy p,
.landing-founder-copy p,
.landing-proof-card p,
.landing-card p {
  margin: 0;
}

.landing-problem-grid,
.landing-compare-grid-rich,
.landing-audience-grid,
.landing-use-cases-grid,
.landing-pricing-grid-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.landing-audience-grid,
.landing-use-cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(18, 39, 20, 0.035);
}

.landing-problem-list,
.landing-compare-list,
.landing-metric-list,
.landing-pricing-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-problem-list li,
.landing-compare-list li,
.landing-metric-list li,
.landing-pricing-list li {
  position: relative;
  padding-left: 18px;
}

.landing-problem-list li::before,
.landing-compare-list li::before,
.landing-metric-list li::before,
.landing-pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.landing-compare-mini {
  display: grid;
  gap: 14px;
}

.landing-compare-mini-card,
.landing-compare-card {
  display: grid;
  gap: 10px;
}

.landing-compare-mini-card-accent,
.landing-compare-card-accent,
.landing-pricing-card-accent {
  background: linear-gradient(135deg, rgba(240, 249, 235, 0.98), rgba(253, 255, 252, 0.98));
}

.landing-compare-mini-label {
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-capacity-preview {
  display: grid;
  gap: 10px;
}

.landing-capacity-track {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(174, 199, 176, 0.28);
}

.landing-capacity-fill {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(217, 120, 87, 0.8), rgba(191, 82, 65, 0.92));
}

.landing-capacity-note {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.landing-founder-meta {
  display: inline-grid;
  gap: 6px;
  margin-top: 10px;
}

.landing-founder-meta span,
.landing-founder-note {
  color: var(--text-soft);
}

.landing-role-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-role-head h3 {
  margin: 0;
}

.landing-role-badge {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(188, 240, 174, 0.28), rgba(222, 242, 216, 0.72));
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-founder-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(21, 66, 18, 0.08);
}

.landing-founder-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 66, 18, 0.88);
  color: #fff;
  font-size: 1.4rem;
}

.landing-founder-duration {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 66, 18, 0.9);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.landing-compare-head {
  display: grid;
  gap: 6px;
}

.landing-compare-head p {
  color: var(--text-soft);
}

.landing-inline-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(188, 240, 174, 0.25);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-stepper {
  display: grid;
  gap: 14px;
}

.landing-step-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.landing-step-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(188, 240, 174, 0.22);
  color: var(--primary-strong);
}

.landing-step-row h3 {
  margin: 0 0 6px;
}

.landing-step-row p {
  color: var(--text-soft);
}

.landing-step-row.is-active {
  border-color: rgba(93, 143, 96, 0.22);
  box-shadow: 0 14px 32px rgba(93, 143, 96, 0.08);
}

.landing-shot-frame-inline {
  padding: 20px;
}

.landing-shot-callout {
  position: absolute;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 66, 18, 0.08);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-shot-callout-top {
  top: 22px;
  right: 24px;
}

.landing-shot-callout-center {
  left: 22px;
  bottom: 32%;
}

.landing-shot-callout-bottom {
  right: 24px;
  bottom: 28px;
}

.landing-product-grid-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.landing-product-grid-reverse .landing-shot-frame {
  order: 1;
}

.landing-product-grid-reverse .landing-product-copy {
  order: 2;
}

.landing-ai-section {
  padding: 44px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(192, 238, 186, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(15, 53, 24, 0.98), rgba(22, 82, 39, 0.96));
  color: #f7fbf6;
}

.landing-ai-section .section-kicker,
.landing-ai-section .dashboard-section-title,
.landing-ai-section .landing-description,
.landing-ai-section .landing-card h3,
.landing-ai-section .landing-card p,
.landing-ai-section .landing-inline-badge {
  color: inherit;
}

.landing-ai-section .landing-ai-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.landing-ai-section .landing-ai-card-future {
  background: rgba(188, 240, 174, 0.14);
}

.landing-ai-grid-rich {
  align-items: stretch;
}

.landing-ai-copy,
.landing-ai-preview {
  display: grid;
  gap: 20px;
}

.landing-ai-action-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-ai-action-card h3,
.landing-ai-action-card p,
.landing-ai-mini-card h4,
.landing-ai-mini-card p {
  margin: 0;
}

.landing-ai-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-ai-action-buttons .ghost-button {
  color: #f7fbf6;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.landing-ai-action-buttons .ghost-button:disabled {
  opacity: 1;
  cursor: default;
}

.landing-ai-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-ai-mini-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.landing-proof-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: linear-gradient(135deg, rgba(240, 249, 235, 0.92), rgba(255, 255, 255, 0.98));
}

.landing-proof-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.landing-proof-note {
  max-width: 250px;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: right;
}

.landing-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.landing-proof-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(188, 240, 174, 0.18);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-analytics-note {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(236, 245, 232, 0.94);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.landing-use-case-rows {
  display: grid;
  gap: 14px;
}

.landing-use-case-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 26px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  background: linear-gradient(135deg, rgba(246, 250, 244, 0.92), rgba(255, 255, 255, 0.98));
}

.landing-use-case-row:nth-child(even) {
  background: linear-gradient(135deg, rgba(236, 245, 232, 0.9), rgba(255, 255, 255, 0.98));
}

.landing-use-case-row h3,
.landing-use-case-row p {
  margin: 0;
}

.landing-use-case-row h3 {
  margin-bottom: 8px;
}

.landing-use-case-index {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(188, 240, 174, 0.26);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-pricing-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.landing-pricing-head p {
  color: var(--text-soft);
}

.landing-faq-accordion {
  display: grid;
  gap: 14px;
}

.landing-faq-item {
  overflow: hidden;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
}

.landing-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.landing-faq-summary::-webkit-details-marker {
  display: none;
}

.landing-faq-answer {
  padding: 0 22px 22px;
  color: var(--text-soft);
  line-height: 1.72;
}

.landing-faq-feedback-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--text-soft);
}

.landing-faq-feedback-note a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.feedback-open {
  overflow: hidden;
}

.feedback-root {
  position: relative;
  z-index: 80;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 26, 18, 0.34);
  backdrop-filter: blur(10px);
}

.feedback-overlay.is-open {
  display: flex;
}

.feedback-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(64, 96, 70, 0.16);
  border-radius: 28px;
  background: rgba(252, 253, 250, 0.98);
  box-shadow: 0 28px 80px rgba(21, 52, 27, 0.18);
}

.feedback-modal.is-mobile {
  width: min(100%, 100%);
  max-height: min(88vh, 880px);
  margin-top: auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 24px 18px 22px;
}

.feedback-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(70, 103, 75, 0.18);
  border-radius: 999px;
  background: rgba(245, 249, 243, 0.94);
  color: var(--text-strong);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.feedback-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding-right: 54px;
}

.feedback-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.feedback-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field > span,
.feedback-field-head span {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.feedback-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-form textarea {
  min-height: 180px;
  resize: vertical;
}

.feedback-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
}

.feedback-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.feedback-upload {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px dashed rgba(93, 126, 99, 0.3);
  border-radius: 20px;
  background: rgba(247, 250, 245, 0.96);
  cursor: pointer;
}

.feedback-upload input {
  display: none;
}

.feedback-upload span {
  font-weight: 700;
  color: var(--primary-strong);
}

.feedback-upload small {
  color: var(--text-soft);
}

.feedback-attachment-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(64, 96, 70, 0.14);
  border-radius: 20px;
  background: rgba(247, 250, 245, 0.94);
}

.feedback-attachment-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(228, 238, 229, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

.feedback-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-attachment-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feedback-attachment-meta strong,
.feedback-attachment-meta span {
  overflow-wrap: anywhere;
}

.feedback-attachment-meta span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feedback-attachment-remove {
  border: none;
  background: transparent;
  color: var(--danger-strong);
  font-weight: 700;
  cursor: pointer;
}

.feedback-privacy,
.feedback-fallback {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.feedback-fallback a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.feedback-banner {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(208, 67, 54, 0.16);
  background: rgba(255, 241, 239, 0.94);
  color: #b52f1f;
  line-height: 1.6;
}

.feedback-actions,
.feedback-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.feedback-actions .form-action-button,
.feedback-success-actions .form-action-button {
  min-width: 164px;
}

.feedback-success {
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
  padding: 24px 8px 12px;
}

.feedback-success-mark {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 244, 219, 0.98);
  color: var(--primary-strong);
  font-size: 2rem;
  font-weight: 800;
}

.feedback-success h2,
.feedback-success p {
  margin: 0;
}

.feedback-success p {
  color: var(--text-soft);
  max-width: 440px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .feedback-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .feedback-attachment-preview {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .feedback-attachment-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .feedback-head {
    padding-right: 44px;
  }

  .feedback-form textarea {
    min-height: 150px;
  }
}

.landing-final-cta {
  padding: 38px 40px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(17, 54, 21, 0.98), rgba(28, 93, 46, 0.96));
  color: #f7fbf6;
}

.landing-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.landing-description-on-dark {
  color: rgba(247, 251, 246, 0.82);
}

.landing-final-cta-button {
  min-width: 220px;
}

.landing-footer-v2 {
  display: grid;
  gap: 24px;
  padding: 18px 0 40px;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 0.8fr));
  gap: 24px;
}

.landing-footer-brand {
  display: grid;
  gap: 12px;
}

.landing-footer-brand strong {
  font-size: 1.1rem;
}

.landing-footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.landing-footer-column h3 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 0.92rem;
}

.landing-footer-column a,
.landing-footer-column span,
.landing-footer-brand p,
.landing-footer-copy {
  color: var(--text-soft);
  text-decoration: none;
}

.landing-footer-column a:hover {
  color: var(--primary-strong);
}

.landing-footer-disabled {
  opacity: 0.72;
}

.landing-footer-copy {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 66, 18, 0.08);
}

@media (max-width: 1120px) {
  .landing-main-v3 {
    gap: 90px;
  }

  .landing-audience-grid,
  .landing-use-cases-grid,
  .landing-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-ai-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .public-menu-toggle {
    display: inline-flex;
  }

  .public-header {
    align-items: start;
  }

  .public-header-inner {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(21, 66, 18, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .public-header.is-open .public-header-inner {
    display: flex;
  }

  .public-nav,
  .public-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero-v3,
  .landing-founder-grid,
  .landing-how-grid,
  .landing-product-grid,
  .landing-ai-grid,
  .landing-proof-card,
  .landing-final-cta-inner,
  .landing-problem-grid,
  .landing-compare-grid-rich,
  .landing-pricing-grid-v3 {
    grid-template-columns: 1fr;
  }

  .landing-product-grid-reverse .landing-shot-frame,
  .landing-product-grid-reverse .landing-product-copy {
    order: initial;
  }

  .landing-founder-section,
  .landing-ai-section,
  .landing-final-cta {
    padding: 28px;
  }

  .landing-floating-card-primary {
    top: -10px;
    left: 10px;
  }

  .landing-floating-card-secondary {
    right: 10px;
    bottom: 12px;
  }

  .landing-proof-actions {
    justify-items: start;
  }

  .landing-proof-note {
    max-width: none;
    text-align: left;
  }

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

  .landing-use-case-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 22px;
  }

  .landing-use-case-index {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .landing-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .landing-main-v3 {
    gap: 72px;
  }

  .landing-title-xl {
    max-width: none;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .landing-actions-stacked-mobile,
  .landing-strip-inner,
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }

  .landing-actions-stacked-mobile {
    display: grid;
  }

  .landing-strip-inner,
  .landing-card,
  .landing-proof-card,
  .landing-faq-summary,
  .landing-faq-answer,
  .landing-final-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-ai-action-card,
  .landing-use-case-row {
    padding: 20px;
  }

  .landing-floating-card {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .landing-shot-callout {
    display: none;
  }

  .landing-audience-grid,
  .landing-use-cases-grid,
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }

  .landing-ai-action-buttons {
    flex-direction: column;
  }

  .landing-ai-action-buttons .ghost-button {
    width: 100%;
  }
}

.app-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.app-page-header-actions {
  display: none;
}

.app-page-header-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.app-page-subtitle {
  margin: 12px 0 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.app-user-box {
  position: relative;
}

.app-user-box.is-compact .app-user-toggle {
  width: auto;
  min-width: 56px;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(21, 66, 18, 0.04);
  border-color: rgba(21, 66, 18, 0.08);
  color: var(--text);
}

.app-user-box.is-compact .app-user-avatar {
  background: rgba(21, 66, 18, 0.08);
  color: var(--primary);
}

.app-user-box.is-compact .app-user-chevron {
  color: var(--text-soft);
}

.app-user-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.app-user-toggle:focus-visible {
  outline: 2px solid rgba(188, 240, 174, 0.42);
  outline-offset: 2px;
}

.app-user-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(188, 240, 174, 0.18);
  color: var(--lime);
  font-size: 0.88rem;
  font-weight: 800;
}

.app-user-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-user-meta strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-meta span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-dropdown {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, 92vw);
  padding: 8px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.app-user-menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.app-user-menu-link:hover,
.app-user-menu-link:focus-visible {
  background: rgba(21, 66, 18, 0.06);
  outline: none;
}

.app-user-menu-link.is-danger {
  color: var(--danger);
}

.app-user-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(21, 66, 18, 0.08);
}

.app-user-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}

.app-user-language-label {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.app-page-layout main,
.app-page-layout .today-main,
.app-page-layout .analytics-main,
.app-page-layout .profile-main {
  display: grid;
  gap: 18px;
}

.utility-page-main {
  display: grid;
  gap: 18px;
}

.utility-page-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.app-mobile-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(21, 66, 18, 0.12);
  z-index: 40;
}

.app-mobile-nav-link {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.app-mobile-nav-link.is-active {
  background: rgba(21, 66, 18, 0.08);
  color: var(--primary);
}

.app-mobile-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-mobile-nav-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1080px) {
  .public-header {
    align-items: flex-start;
  }

  .public-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

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

  .app-sidebar {
    display: none;
  }

  .app-page-header-actions {
    display: flex;
    align-items: center;
  }

  .app-main {
    padding: 18px 18px 104px;
  }

  .app-mobile-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .public-nav,
  .public-actions,
  .app-sidebar-secondary {
    width: 100%;
  }

  .public-nav {
    flex-direction: column;
  }

  .public-action-link,
  .app-nav-link {
    width: 100%;
  }

  .app-page-header {
    align-items: flex-start;
  }

  .app-page-header-copy h1 {
    font-size: 2rem;
  }

  .app-mobile-nav {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 8px;
  }

  .app-mobile-nav-link {
    min-height: 44px;
    font-size: 0.74rem;
  }
}

.landing-home-main {
  gap: clamp(64px, 7vw, 112px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.landing-home-hero {
  min-height: min(720px, calc(100svh - 124px));
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(36px, 4vw, 72px);
  padding: clamp(32px, 4vw, 64px) 0;
}

.landing-home-copy {
  display: grid;
  gap: clamp(18px, 1.7vw, 28px);
  align-content: center;
}

.landing-home-title {
  max-width: 11.5ch;
  font-size: clamp(3.1rem, 4vw, 5rem);
  line-height: 1.06;
}

.landing-home-description {
  max-width: 560px;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.65;
}

.landing-home-actions {
  gap: 14px;
}

.landing-home-note {
  max-width: 500px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.landing-home-visual {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.landing-home-how {
  padding: clamp(24px, 3.2vw, 52px);
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(236, 246, 233, 0.8), rgba(255, 255, 255, 0.94) 62%);
}

.landing-home-how-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.56fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
}

.landing-home-value,
.landing-home-founder {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.landing-home-steps,
.landing-home-value-copy,
.landing-home-founder-copy {
  display: grid;
  gap: 14px;
}

.landing-home-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.landing-home-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 20px 22px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.landing-home-step-index {
  grid-row: 1 / span 2;
  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-home-step h3,
.landing-home-value-copy h2,
.landing-home-founder-copy h2 {
  margin: 0;
}

.landing-home-step h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.landing-home-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.landing-home-value-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-home-value-list li {
  position: relative;
  padding-left: 18px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.landing-home-value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.landing-home-how-layout .landing-shot-frame,
.landing-home-value > .landing-shot-frame {
  width: min(100%, 1100px);
  justify-self: end;
}

.landing-home-founder .landing-founder-media {
  width: min(100%, 980px);
  justify-self: end;
}

.landing-home-founder.is-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.landing-home-founder.is-text-only .landing-home-founder-copy {
  max-width: 820px;
}

.landing-shot-hint {
  display: none;
  margin: 12px 8px 4px;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.landing-founder-meta {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.landing-founder-meta strong {
  color: var(--text-strong);
  font-size: 1rem;
}

.landing-founder-meta span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.landing-founder-media {
  min-width: 0;
}

.landing-founder-media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(247, 250, 246, 0.96), rgba(238, 245, 235, 0.98));
  box-shadow: 0 16px 40px rgba(18, 39, 20, 0.045);
}

.landing-founder-video,
.landing-founder-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-founder-fallback-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(21, 66, 18, 0.32);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-founder-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  background: linear-gradient(180deg, rgba(18, 39, 20, 0.06), rgba(18, 39, 20, 0.18));
  cursor: default;
}

.landing-founder-play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(18, 39, 20, 0.12);
  position: relative;
}

.landing-founder-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--primary);
}

.landing-founder-fallback {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.landing-founder-fallback strong,
.landing-founder-fallback p,
.landing-founder-fallback span {
  margin: 0;
}

.landing-founder-fallback p,
.landing-founder-fallback span {
  color: var(--text-soft);
  line-height: 1.55;
}

.landing-founder-fallback span {
  font-size: 0.88rem;
}

.landing-home-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 244, 0.96));
}

.landing-home-cta-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.landing-home-cta-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.landing-home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 20px 0 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.landing-home-footer-brand {
  color: var(--text-strong);
  font-weight: 700;
}

.landing-home-footer-link {
  color: inherit;
  text-decoration: none;
}

.landing-home-footer-link:hover,
.landing-home-footer-link:focus-visible {
  color: var(--text-strong);
}

@media (max-width: 1080px) {
  .landing-home-hero,
  .landing-home-how-layout,
  .landing-home-value,
  .landing-home-founder,
  .landing-home-cta-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-home-title {
    max-width: none;
  }

  .landing-home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-home-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-home-step-index {
    grid-row: auto;
  }

  .landing-home-visual,
  .landing-home-how-layout .landing-shot-frame,
  .landing-home-value > .landing-shot-frame {
    justify-content: stretch;
    justify-self: stretch;
  }

  .landing-shot-frame-hero,
  .landing-home-how-layout .landing-shot-frame,
  .landing-home-value > .landing-shot-frame {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .public-page .public-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .landing-home-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-home-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .landing-home-step-index {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 640px) {
  .landing-home-main {
    gap: 56px;
  }

  .landing-home-title {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .landing-home-how {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .landing-home-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-home-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .landing-home-step-index {
    grid-row: 1 / span 2;
  }

  .landing-shot-shell {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .landing-shot-shell img {
    width: 760px;
    max-width: none;
  }

  .landing-shot-hint {
    display: block;
  }

  .landing-home-hero {
    min-height: auto;
    padding-top: 8px;
  }

  .landing-shot-frame {
    padding: 8px;
  }

  .landing-shot-frame-hero,
  .landing-home-how-layout .landing-shot-frame,
  .landing-home-value > .landing-shot-frame {
    width: calc(100vw - 32px);
    max-width: 100%;
  }

  .landing-home-step,
  .landing-home-cta-card {
    border-radius: 22px;
  }

  .landing-founder-media-frame {
    border-radius: 22px;
  }

  .landing-home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* MindPulse density system */
:root {
  --mp-density-page-padding: 24px;
  --mp-density-content-width: 1320px;
  --mp-density-section-gap: 18px;
  --mp-density-card-padding: 20px;
  --mp-density-card-padding-tight: 16px;
  --mp-density-control-height: 46px;
  --mp-density-control-padding-x: 14px;
  --mp-density-sidebar-width: 272px;
  --mp-density-sidebar-gap: 24px;
  --mp-density-sidebar-padding-y: 22px;
  --mp-density-sidebar-padding-x: 18px;
  --mp-density-nav-item-height: 44px;
  --mp-density-nav-font-size: 0.98rem;
  --mp-density-column-gap: 14px;
  --mp-density-task-gap: 10px;
  --mp-density-column-header-height: 88px;
  --mp-density-column-header-padding: 18px;
  --mp-density-day-column-min-height: 520px;
  --mp-density-day-pulse-height: 66px;
  --mp-density-chart-height: 320px;
  --mp-density-bar-track-height: 170px;
  --mp-density-page-title-size: clamp(2.2rem, 3vw, 3.4rem);
  --mp-density-page-subtitle-size: 1rem;
}

body[data-density="comfortable"] {
  --mp-density-page-padding: 24px;
  --mp-density-content-width: 1320px;
  --mp-density-section-gap: 18px;
  --mp-density-card-padding: 20px;
  --mp-density-card-padding-tight: 16px;
  --mp-density-control-height: 46px;
  --mp-density-control-padding-x: 14px;
  --mp-density-sidebar-width: 272px;
  --mp-density-sidebar-gap: 24px;
  --mp-density-sidebar-padding-y: 22px;
  --mp-density-sidebar-padding-x: 18px;
  --mp-density-nav-item-height: 44px;
  --mp-density-nav-font-size: 0.98rem;
  --mp-density-column-gap: 14px;
  --mp-density-task-gap: 10px;
  --mp-density-column-header-height: 88px;
  --mp-density-column-header-padding: 18px;
  --mp-density-day-column-min-height: 520px;
  --mp-density-day-pulse-height: 66px;
  --mp-density-chart-height: 320px;
  --mp-density-bar-track-height: 170px;
  --mp-density-page-title-size: clamp(2.2rem, 3vw, 3.4rem);
  --mp-density-page-subtitle-size: 1rem;
}

body[data-density="compact"] {
  --mp-density-page-padding: 16px;
  --mp-density-content-width: 1480px;
  --mp-density-section-gap: 12px;
  --mp-density-card-padding: 14px;
  --mp-density-card-padding-tight: 12px;
  --mp-density-control-height: 40px;
  --mp-density-control-padding-x: 12px;
  --mp-density-sidebar-width: 236px;
  --mp-density-sidebar-gap: 18px;
  --mp-density-sidebar-padding-y: 18px;
  --mp-density-sidebar-padding-x: 14px;
  --mp-density-nav-item-height: 38px;
  --mp-density-nav-font-size: 0.9rem;
  --mp-density-column-gap: 10px;
  --mp-density-task-gap: 8px;
  --mp-density-column-header-height: 74px;
  --mp-density-column-header-padding: 14px;
  --mp-density-day-column-min-height: 430px;
  --mp-density-day-pulse-height: 58px;
  --mp-density-chart-height: 260px;
  --mp-density-bar-track-height: 138px;
  --mp-density-page-title-size: clamp(1.96rem, 2.35vw, 2.7rem);
  --mp-density-page-subtitle-size: 0.94rem;
}

body.app-has-shell .app-shell {
  grid-template-columns: var(--mp-density-sidebar-width) 1fr;
}

body.app-has-shell .app-sidebar {
  gap: var(--mp-density-sidebar-gap);
  padding: var(--mp-density-sidebar-padding-y) var(--mp-density-sidebar-padding-x);
}

body.app-has-shell .sidebar-brand {
  padding: 4px 10px 0;
}

body.app-has-shell .sidebar-logo {
  font-size: clamp(1.38rem, 1.2rem + 0.4vw, 1.68rem);
}

body.app-has-shell .app-nav-link {
  min-height: var(--mp-density-nav-item-height);
  padding: 0 12px;
  font-size: var(--mp-density-nav-font-size);
}

body.app-has-shell .app-main {
  padding: var(--mp-density-page-padding);
}

body.app-has-shell .app-content-shell {
  width: min(var(--mp-density-content-width), 100%);
}

body.app-has-shell .app-page-layout main,
body.app-has-shell .app-page-layout .today-main,
body.app-has-shell .app-page-layout .analytics-main,
body.app-has-shell .app-page-layout .profile-main,
body.app-has-shell .utility-page-main,
body.app-has-shell .dashboard-main {
  gap: var(--mp-density-section-gap);
}

body.app-has-shell .app-page-header {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: var(--mp-density-section-gap);
}

body.app-has-shell .app-page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.app-has-shell .app-page-header-actions .app-user-box {
  display: none;
}

body.app-has-shell .app-page-header-copy h1 {
  font-size: var(--mp-density-page-title-size);
}

body.app-has-shell .app-page-subtitle {
  margin-top: 10px;
  font-size: var(--mp-density-page-subtitle-size);
  line-height: 1.48;
}

body.app-has-shell .section,
body.app-has-shell .analytics-chart-card,
body.app-has-shell .analytics-insight-card,
body.app-has-shell .analytics-type-card,
body.app-has-shell .analytics-overload-card,
body.app-has-shell .analytics-empty-card,
body.app-has-shell .weekly-review-card,
body.app-has-shell .utility-page-card {
  padding: var(--mp-density-card-padding);
}

body.app-has-shell .section {
  border-radius: 24px;
}

body.app-has-shell .section-heading {
  margin-bottom: 10px;
  gap: 12px;
}

body.app-has-shell .section-filters {
  gap: 10px;
}

body.app-has-shell .login-button,
body.app-has-shell .ghost-button,
body.app-has-shell .form-action-button,
body.app-has-shell .calendar-event-submit,
body.app-has-shell .calendar-event-cancel,
body.app-has-shell .inline-action-button,
body.app-has-shell .analytics-filter-select,
body.app-has-shell .analytics-period-select,
body.app-has-shell .quarter-filter select,
body.app-has-shell .goal-create-form input,
body.app-has-shell .goal-create-form select,
body.app-has-shell .metric-input,
body.app-has-shell .today-task-create-form input,
body.app-has-shell .today-task-create-form select,
body.app-has-shell .today-checkin-form select,
body.app-has-shell .inline-task-input,
body.app-has-shell .inline-task-row select,
body.app-has-shell .backlog-toolbar select,
body.app-has-shell .backlog-toolbar input,
body.app-has-shell .pricing-period-toggle,
body.app-has-shell .pricing-cta-button {
  min-height: var(--mp-density-control-height);
  padding-left: var(--mp-density-control-padding-x);
  padding-right: var(--mp-density-control-padding-x);
}

body.app-has-shell .today-grid {
  gap: var(--mp-density-section-gap);
}

body.app-has-shell .today-range-field {
  gap: 10px;
  padding: var(--mp-density-card-padding-tight);
}

body.app-has-shell .today-range-copy {
  gap: 4px;
}

body.app-has-shell .today-range-copy span {
  font-size: 0.9rem;
}

body.app-has-shell .today-range-control {
  gap: 10px;
}

body.app-has-shell .today-range-control output {
  min-width: 36px;
  min-height: 36px;
  font-size: 0.92rem;
}

body.app-has-shell .backlog-table {
  min-width: 1060px;
  gap: var(--mp-density-column-gap);
  grid-template-columns: repeat(5, minmax(196px, 1fr));
}

body.app-has-shell .backlog-day-column {
  gap: var(--mp-density-column-gap);
}

body.app-has-shell .backlog-column-header {
  min-height: var(--mp-density-column-header-height);
  padding: var(--mp-density-column-header-padding);
}

body.app-has-shell .backlog-day-title strong {
  font-size: 1.16rem;
}

body.app-has-shell .backlog-day-title span {
  font-size: 0.7rem;
}

body.app-has-shell .backlog-day-list {
  gap: var(--mp-density-task-gap);
  min-height: var(--mp-density-day-column-min-height);
}

body.app-has-shell .day-pulse-shell {
  gap: 6px;
}

body.app-has-shell .day-pulse-card {
  min-height: var(--mp-density-day-pulse-height);
  padding: 8px 10px;
  gap: 6px;
}

body.app-has-shell .day-pulse-top strong {
  font-size: 0.84rem;
}

body.app-has-shell .day-pulse-top span,
body.app-has-shell .day-pulse-bottom span,
body.app-has-shell .day-pulse-details span,
body.app-has-shell .day-pulse-note {
  font-size: 0.68rem;
}

body.app-has-shell .task-card {
  padding: var(--mp-density-card-padding-tight);
}

body.app-has-shell .task-card,
body.app-has-shell .inline-task-editor,
body.app-has-shell .daily-focus-item {
  border-radius: 18px;
}

body.app-has-shell .analytics-dashboard-grid {
  gap: var(--mp-density-section-gap);
}

body.app-has-shell .analytics-load-bars {
  min-height: calc(var(--mp-density-chart-height) - 30px);
  gap: 8px;
}

body.app-has-shell .analytics-load-bar-card {
  min-height: calc(var(--mp-density-chart-height) - 54px);
}

body.app-has-shell .analytics-svg-chart,
body.app-has-shell .analytics-bars-chart {
  min-height: var(--mp-density-chart-height);
}

body.app-has-shell .analytics-load-bar-track {
  min-height: var(--mp-density-bar-track-height);
}

body.app-has-shell .analytics-load-bar-top strong {
  font-size: 1rem;
}

.density-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 66, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.density-option {
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.density-option:hover,
.density-option:focus-visible {
  background: rgba(21, 66, 18, 0.08);
  color: var(--text);
  outline: none;
}

.density-option:focus-visible {
  box-shadow: 0 0 0 2px rgba(21, 66, 18, 0.12);
}

.density-option.is-active {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 1279px) {
  body.app-has-shell {
    --mp-density-page-padding: 20px;
    --mp-density-content-width: 1320px;
  }
}

@media (max-width: 960px) {
  body.app-has-shell .app-page-header-actions {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
  }

  body.app-has-shell .app-page-header-actions .app-user-box {
    display: block;
  }

  body.app-has-shell .density-switcher {
    flex: 1;
    justify-content: center;
  }

  body.app-has-shell .density-option {
    flex: 1;
  }
}

/* MindPulse internal UX audit polish */
body.app-has-shell {
  --mp-ui-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 250, 246, 0.97) 100%);
  --mp-ui-surface-soft: linear-gradient(180deg, rgba(249, 251, 247, 0.98) 0%, rgba(244, 248, 243, 0.96) 100%);
  --mp-ui-border: rgba(21, 66, 18, 0.1);
  --mp-ui-border-strong: rgba(21, 66, 18, 0.15);
  --mp-ui-shadow: 0 10px 30px rgba(17, 44, 14, 0.045);
  --mp-ui-shadow-hover: 0 16px 36px rgba(17, 44, 14, 0.07);
  --mp-ui-card-radius: 22px;
  --mp-ui-card-radius-tight: 18px;
  --mp-ui-muted: rgba(32, 54, 30, 0.68);
  --mp-ui-subtle: rgba(32, 54, 30, 0.72);
}

body.app-has-shell .weekly-board {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

body.app-has-shell .app-page-layout main {
  grid-template-columns: minmax(0, 1fr);
}

body.app-has-shell .profile-form label {
  margin-bottom: -6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.inline-task-help {
  margin: 0;
  color: #425440;
  font-size: 0.82rem;
  line-height: 1.4;
}

body.app-has-shell .app-content-shell {
  width: min(1480px, 100%);
}

body.app-has-shell .app-main {
  padding: 20px 24px 28px;
}

body.app-has-shell .app-sidebar {
  gap: 18px;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, rgba(12, 63, 43, 0.995) 0%, rgba(10, 51, 37, 0.995) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

body.app-has-shell .sidebar-brand {
  padding: 2px 8px 0;
}

body.app-has-shell .sidebar-logo {
  font-size: clamp(1.24rem, 1.1rem + 0.36vw, 1.52rem);
  letter-spacing: -0.035em;
}

body.app-has-shell .app-nav,
body.app-has-shell .app-sidebar-secondary {
  gap: 6px;
}

body.app-has-shell .app-nav-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.app-has-shell .app-nav-link:hover,
body.app-has-shell .app-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  transform: translateX(1px);
}

body.app-has-shell .app-nav-link.is-active {
  background: rgba(188, 240, 174, 0.145);
  box-shadow: inset 2px 0 0 var(--lime);
}

body.app-has-shell .app-page-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.app-has-shell .app-page-header-copy {
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

body.app-has-shell .app-page-header-copy h1 {
  font-size: clamp(2.3rem, 2rem + 1.2vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.app-has-shell .app-page-subtitle {
  margin-top: 0;
  max-width: 68ch;
  color: var(--mp-ui-muted);
  font-size: 1rem;
  line-height: 1.52;
}

body.app-has-shell .section,
body.app-has-shell .analytics-chart-card,
body.app-has-shell .analytics-insight-card,
body.app-has-shell .analytics-type-card,
body.app-has-shell .analytics-overload-card,
body.app-has-shell .analytics-empty-card,
body.app-has-shell .weekly-review-card,
body.app-has-shell .utility-page-card,
body.app-has-shell .analytics-v0-panel,
body.app-has-shell .analytics-v0-metric-card {
  border-color: var(--mp-ui-border);
  border-radius: var(--mp-ui-card-radius);
  background: var(--mp-ui-surface);
  box-shadow: var(--mp-ui-shadow);
}

body.app-has-shell .section {
  padding: 22px;
}

body.app-has-shell .section-kicker,
body.app-has-shell .analytics-card-label,
body.app-has-shell .task-meta-label,
body.app-has-shell .backlog-day-title span,
body.app-has-shell .day-pulse-top span,
body.app-has-shell .day-pulse-bottom span,
body.app-has-shell .day-pulse-details span {
  color: var(--mp-ui-subtle);
}

body.app-has-shell .section-heading {
  margin-bottom: 12px;
}

body.app-has-shell .section-heading h2,
body.app-has-shell .section-heading h3 {
  letter-spacing: -0.03em;
}

body.app-has-shell .daily-focus-card {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--mp-ui-surface-soft);
}

body.app-has-shell .daily-focus-header {
  margin-bottom: 8px;
}

body.app-has-shell .daily-focus-title {
  font-size: 1.02rem;
}

body.app-has-shell .backlog-table {
  min-width: 1120px;
  grid-template-columns: repeat(5, minmax(208px, 1fr));
  gap: 12px;
}

body.app-has-shell .backlog-day-column {
  gap: 10px;
}

body.app-has-shell .backlog-column-header {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--mp-ui-surface-soft);
  border: 1px solid var(--mp-ui-border);
}

body.app-has-shell .backlog-day-title {
  gap: 4px;
}

body.app-has-shell .backlog-day-title strong {
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

body.app-has-shell .backlog-day-title span {
  font-size: 0.68rem;
}

body.app-has-shell .day-pulse-shell {
  gap: 6px;
}

body.app-has-shell .day-pulse-card {
  min-height: 62px;
  padding: 9px 11px;
  gap: 7px;
  border-radius: 16px;
  border-color: var(--mp-ui-border);
  background: var(--mp-ui-surface);
  box-shadow: none;
}

body.app-has-shell .day-pulse-card:hover {
  border-color: var(--mp-ui-border-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 44, 14, 0.05);
}

body.app-has-shell .day-pulse-top strong {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

body.app-has-shell .day-pulse-top span,
body.app-has-shell .day-pulse-bottom span,
body.app-has-shell .day-pulse-note,
body.app-has-shell .day-pulse-details span {
  font-size: 0.71rem;
}

body.app-has-shell .day-pulse-bottom {
  font-size: 0.78rem;
}

body.app-has-shell .day-pulse-bar {
  height: 7px;
}

body.app-has-shell .backlog-day-add-button {
  min-height: 46px;
  border-radius: 16px;
  background: rgba(247, 250, 244, 0.9);
  color: rgba(32, 54, 30, 0.82);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.app-has-shell .backlog-day-add-button:hover {
  transform: translateY(-1px);
}

body.app-has-shell .backlog-day-list {
  gap: 8px;
  min-height: 420px;
}

body.app-has-shell .backlog-slot-cell {
  border-radius: 16px;
  padding: 6px;
}

body.app-has-shell .task-card {
  min-height: 0;
  padding: 12px 12px 11px;
  border-radius: 16px;
  border: 1px solid var(--mp-ui-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 251, 246, 0.98) 100%);
  box-shadow: 0 6px 18px rgba(17, 44, 14, 0.035);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-has-shell .task-card:hover {
  transform: translateY(-1px);
  border-color: var(--mp-ui-border-strong);
  box-shadow: 0 12px 24px rgba(17, 44, 14, 0.055);
}

body.app-has-shell .task-card p {
  margin: 0 22px 10px 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.36;
  letter-spacing: -0.015em;
}

body.app-has-shell .task-done-mark {
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
}

body.app-has-shell .task-drag-hint {
  top: 10px;
  right: 36px;
  opacity: 0.38;
}

body.app-has-shell .task-card-actions,
body.app-has-shell .task-card-actions-stacked {
  gap: 7px;
}

body.app-has-shell .task-status-group,
body.app-has-shell .task-meta-labeled {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

body.app-has-shell .task-meta {
  gap: 6px;
}

body.app-has-shell .task-status-select {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 0.84rem;
}

body.app-has-shell .task-meta-label {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.app-has-shell .task-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  background: rgba(237, 242, 236, 0.88);
  color: rgba(25, 45, 23, 0.88);
}

body.app-has-shell .analytics-v0-main {
  gap: 18px;
}

body.app-has-shell .analytics-hero-card {
  gap: 16px;
  align-items: stretch;
}

body.app-has-shell .analytics-v0-hero,
body.app-has-shell .analytics-weekly-review-panel {
  padding: 24px;
}

body.app-has-shell .analytics-v0-top-grid,
body.app-has-shell .analytics-overview-grid-4 {
  gap: 14px;
}

body.app-has-shell .analytics-v0-metric-card {
  min-height: 162px;
  padding: 18px;
  border-radius: 22px;
}

body.app-has-shell .analytics-v0-metric-body {
  gap: 8px;
}

body.app-has-shell .analytics-v0-metric-value {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.45rem);
}

body.app-has-shell .analytics-v0-mini-pill,
body.app-has-shell .analytics-v0-badge {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.82rem;
}

body.app-has-shell .analytics-v0-primary-row,
body.app-has-shell .analytics-row-balanced {
  gap: 16px;
}

body.app-has-shell .analytics-chart-card,
body.app-has-shell .analytics-v0-panel {
  padding: 22px;
  border-radius: 24px;
}

body.app-has-shell .analytics-svg-chart,
body.app-has-shell .analytics-bars-chart {
  min-height: 272px;
}

body.app-has-shell .analytics-load-bars {
  min-height: 210px;
  gap: 8px;
}

body.app-has-shell .analytics-load-bar-card {
  min-height: 214px;
  gap: 6px;
}

body.app-has-shell .analytics-load-bar-track {
  min-height: 150px;
}

body.app-has-shell .analytics-dashboard-grid.analytics-dashboard-grid-lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.app-has-shell .analytics-insight-card,
body.app-has-shell .analytics-type-card,
body.app-has-shell .analytics-overload-card {
  min-height: 120px;
  padding: 18px;
  border-radius: 20px;
}

body.app-has-shell .analytics-type-grid,
body.app-has-shell .analytics-stack-list {
  gap: 10px;
}

body.app-has-shell .analytics-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-has-shell .analytics-overload-grid {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-has-shell .analytics-weekly-review-letter {
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  box-shadow: none;
  background: var(--mp-ui-surface-soft);
}

body.app-has-shell .analytics-weekly-review-letter p {
  font-size: 0.95rem;
  line-height: 1.66;
}

body.app-has-shell .analytics-overload-score {
  letter-spacing: -0.035em;
}

body.app-has-shell .today-grid {
  gap: 16px;
}

body.app-has-shell .today-range-field {
  padding: 14px 16px;
  gap: 10px;
  border-radius: 18px;
}

body.app-has-shell .today-range-field strong {
  letter-spacing: -0.02em;
}

body.app-has-shell .today-checkin-form select,
body.app-has-shell .daily-focus-select,
body.app-has-shell .analytics-period-select {
  border-radius: 14px;
  background: rgba(247, 250, 244, 0.92);
}

body.app-has-shell .form-action-button,
body.app-has-shell .ghost-button,
body.app-has-shell .backlog-day-add-button,
body.app-has-shell .analytics-filter-select,
body.app-has-shell .analytics-period-select,
body.app-has-shell .task-status-select,
body.app-has-shell .daily-focus-select,
body.app-has-shell .metric-input,
body.app-has-shell .today-checkin-form select {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.app-has-shell .form-action-button:hover,
body.app-has-shell .ghost-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  body.app-has-shell .analytics-type-grid,
  body.app-has-shell .analytics-overload-grid {
    grid-template-columns: 1fr;
  }

  body.app-has-shell .task-status-group,
  body.app-has-shell .task-meta-labeled {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 960px) {
  body.app-has-shell .app-main {
    padding: 16px 16px 24px;
  }

  body.app-has-shell .app-page-header {
    align-items: flex-start;
    gap: 14px;
  }

  body.app-has-shell .app-page-header-copy h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  body.app-has-shell .section,
  body.app-has-shell .analytics-chart-card,
  body.app-has-shell .analytics-v0-panel,
  body.app-has-shell .analytics-v0-metric-card {
    padding: 18px;
  }

  body.app-has-shell .analytics-dashboard-grid.analytics-dashboard-grid-lower,
  body.app-has-shell .analytics-row-balanced,
  body.app-has-shell .analytics-v0-primary-row {
    grid-template-columns: 1fr;
  }

  body.app-has-shell .backlog-table {
    min-width: 960px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-has-shell .app-nav-link,
  body.app-has-shell .task-card,
  body.app-has-shell .day-pulse-card,
  body.app-has-shell .form-action-button,
  body.app-has-shell .ghost-button,
  body.app-has-shell .backlog-day-add-button {
    transition: none;
    transform: none !important;
  }
}

/* Feedback is a primary escape hatch during the preview, not a utility link. */
body.app-has-shell .app-feedback-trigger {
  min-height: 74px;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(212, 246, 191, 0.8);
  border-radius: 16px;
  background: linear-gradient(135deg, #d8f5c9, #bceaa8);
  color: #173d28;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(4, 31, 18, 0.18);
}

body.app-has-shell .app-feedback-trigger:hover,
body.app-has-shell .app-feedback-trigger:focus-visible {
  background: linear-gradient(135deg, #e8fbdc, #cff3bc);
  color: #103620;
  outline: 2px solid #e8fbdc;
  outline-offset: 3px;
}

.app-feedback-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(23, 61, 40, 0.1);
}

.app-feedback-cta-icon svg {
  width: 20px;
  height: 20px;
}

.app-feedback-cta-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-feedback-cta-copy strong {
  font-size: 0.91rem;
  line-height: 1.15;
}

.app-feedback-cta-copy small {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.25;
}

.app-mobile-nav-link.is-feedback {
  border: 1px solid rgba(21, 66, 18, 0.13);
  background: #e1f5d6;
  color: #173d28;
  cursor: pointer;
}

.app-mobile-nav-link.is-feedback:hover,
.app-mobile-nav-link.is-feedback:focus-visible {
  background: #d1eec1;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.app-has-shell .task-card.is-done {
  background: #dcefd8;
  border: 2px solid #589a59;
  box-shadow: 0 4px 16px rgba(42, 105, 48, 0.16);
}

body.app-has-shell .task-card.is-done .task-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #276c35;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

[data-task-card]:focus-visible {
  outline: 3px solid #276c35;
  outline-offset: 3px;
}

/* MindPulse preview design system: neutral surfaces, clear controls, calm green. */
body.app-has-shell {
  --bg: #eeeeec;
  --bg-soft: #e7e9e4;
  --surface: #ffffff;
  --surface-low: #f7f8f5;
  --surface-high: #e9ebe6;
  --surface-line: #d9ddd5;
  --text: #1d2820;
  --text-strong: #19231b;
  --text-soft: #526055;
  --primary: #244e34;
  --primary-strong: #183b26;
  --lime: #d9ef81;
  --mp-ui-surface: #ffffff;
  --mp-ui-surface-soft: #f5f7f2;
  --mp-ui-border: #dfe4dc;
  --mp-ui-border-strong: #cdd7cb;
  --mp-ui-muted: #526055;
  --mp-ui-subtle: #59675a;
  --mp-ui-shadow: 0 3px 14px rgba(32, 48, 32, 0.035);
  --mp-ui-card-radius: 18px;
  background: #eeeeec;
  font-family: "MindPulse Manrope", "Manrope", sans-serif;
}

body.app-has-shell .app-sidebar {
  background: #f6f7f4;
  border-right: 1px solid #dde2d9;
  box-shadow: none;
}
body.app-has-shell .sidebar-logo { color: #233c2a; }
body.app-has-shell .sidebar-caption { color: #657168; letter-spacing: 0.08em; }
body.app-has-shell .app-nav-link { color: #4c5b4f; }
body.app-has-shell .app-nav-link:hover,
body.app-has-shell .app-nav-link:focus-visible { background: #e9ede4; color: #203a27; }
body.app-has-shell .app-nav-link.is-active { color: #203a27; background: #e2ebd7; box-shadow: inset 3px 0 0 #79a641; }
body.app-has-shell .app-sidebar .app-user-toggle { color: #263b2a; background: #edf0ea; border-color: #dce3d9; }
body.app-has-shell .app-sidebar .app-user-meta span { color: #5b6a5e; }
body.app-has-shell .app-sidebar .app-user-avatar { color: #274c31; background: #dbe9cb; }
body.app-has-shell .app-feedback-trigger { background: #e0efbf; color: #253d25; border-color: #c8dcaa; box-shadow: none; }
body.app-has-shell .app-feedback-trigger:hover,
body.app-has-shell .app-feedback-trigger:focus-visible { background: #d3e9a7; color: #1c3420; outline-color: #638842; }

body.app-has-shell .app-page-header-copy h1 { font-size: clamp(2rem, 1.8rem + 1vw, 2.8rem); line-height: 1.08; letter-spacing: -0.045em; }
body.app-has-shell .section-kicker,
body.app-has-shell .analytics-card-label,
body.app-has-shell .task-meta-label { letter-spacing: 0.07em; }
body.app-has-shell .backlog-column-header,
body.app-has-shell .day-pulse-card,
body.app-has-shell .today-range-field,
body.app-has-shell .daily-focus-card { background: #f5f7f2; border-color: #dfe4dc; box-shadow: none; }
body.app-has-shell .task-card { background: #ffffff; border-color: #dfe4dc; box-shadow: 0 2px 8px rgba(32,48,32,.035); }
body.app-has-shell .task-card.is-done { background: #edf6e9; border-color: #7ba36e; }
body.app-has-shell .form-action-button,
body.app-has-shell .inline-action-button.is-primary { background: #244e34; color: #fff; }
body.app-has-shell .form-action-button:hover,
body.app-has-shell .inline-action-button.is-primary:hover { background: #183b26; }
body.app-has-shell .analytics-v0-hero { background: #f7f9f4; }
body.app-has-shell .analytics-v0-control-card { background: #edf3e6; border-color: #dbe5d4; }
body.app-has-shell .analytics-v0-top-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body.app-has-shell :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #537f49; outline-offset: 2px; }

@media (max-width: 960px) {
  body.app-has-shell .app-main { padding: 16px 16px 96px; }
  body.app-has-shell .app-page-header-copy h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

/* Preview refinement: content first, consistent surfaces and controls. */
body:has(.public-page) {
  --bg: #eeeeec;
  --surface: #fff;
  --text: #1d2820;
  --text-soft: #526055;
  --primary: #244e34;
  --primary-strong: #183b26;
  font-family: "MindPulse Manrope", "Manrope", sans-serif;
  color: #1d2820;
  background: #eeeeec;
}
body:has(.public-page) :is(.auth-route-card, .landing-home-step, .landing-home-cta-card) {
  border-color: #dfe4dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(32, 48, 32, .035);
}
body:has(.public-page) :is(a, button, input, select, textarea):focus-visible,
body.app-has-shell :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #537f49;
  outline-offset: 3px;
}
body:has(.public-page) .form-action-button { background: #244e34; color: #fff; }
body:has(.public-page) .form-action-button:hover { background: #183b26; }
body.app-has-shell .today-range-field {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e1e6de;
  box-shadow: none;
  padding: 16px 0;
}
body.app-has-shell .today-range-field strong { font-size: 1rem; }
body.app-has-shell .today-grid { align-items: start; gap: 24px; }
body.app-has-shell #backlogSummary .analytics-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
  border: 1px solid #dfe4dc;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f8f5;
}
body.app-has-shell #backlogSummary .analytics-card {
  min-height: 0;
  padding: 16px;
  border: 0;
  border-right: 1px solid #dfe4dc;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.app-has-shell #backlogSummary .analytics-card:last-child { border-right: 0; }
body.app-has-shell #backlogSummary .analytics-card-value { font-size: 1.8rem; }
body.app-has-shell #backlogSummary .analytics-card-note { font-size: .8rem; line-height: 1.4; }
body.app-has-shell .task-card { border-radius: 14px; padding: 14px; }
body.app-has-shell .task-card strong { color: #1d2820; line-height: 1.35; }
body.app-has-shell .task-meta-label { color: #526055; }
body.app-has-shell .task-card.is-done { border-width: 1px; box-shadow: none; }
body.app-has-shell .analytics-v0-hero { padding: 18px 20px; gap: 16px; }
body.app-has-shell .analytics-v0-hero-copy .today-section-copy { max-width: 58ch; font-size: .9rem; line-height: 1.5; }
body.app-has-shell .analytics-v0-control-card { padding: 14px; }
body.app-has-shell #analyticsTopCards .analytics-empty-state { grid-column: 1 / -1; }
body.app-has-shell .analytics-card-label,
body.app-has-shell .section-kicker,
body.app-has-shell .task-meta-label { letter-spacing: .025em; text-transform: none; }
body.app-has-shell .app-feedback-trigger { min-height: 54px; padding: 8px 10px; gap: 8px; }
body.app-has-shell .app-feedback-cta-icon { width: 32px; height: 32px; flex-basis: 32px; }
body.app-has-shell .app-feedback-cta-copy small { color: #405840; }
body.app-has-shell :is(input, select, textarea):disabled,
body:has(.public-page) :is(input, select, textarea, button):disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 960px) {
  body.app-has-shell .app-shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  body.app-has-shell #backlogSummary .analytics-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-has-shell #backlogSummary .analytics-card:nth-child(2) { border-right: 0; }
  body.app-has-shell #backlogSummary .analytics-card:nth-child(-n+2) { border-bottom: 1px solid #dfe4dc; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.public-page) *, body.app-has-shell * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Task card readability */
body.app-has-shell .task-card {
  min-width: 0;
  padding: 14px;
}
body.app-has-shell .task-card p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
body.app-has-shell .task-card-actions-stacked { gap: 10px; }
body.app-has-shell .task-status-group,
body.app-has-shell .task-meta-labeled {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}
body.app-has-shell .task-meta-label {
  font-size: .75rem;
  line-height: 1.35;
  color: #526055;
  text-align: center;
}
body.app-has-shell .task-status-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  appearance: none;
  padding: 0 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23243b2c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  font-size: .78rem;
  text-align: center;
}
body.app-has-shell .task-card .task-badge {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  height: auto;
  padding: 6px 10px;
  border-radius: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: center;
}

/* Weekly review: calm summary first, deeper analysis on demand. */
body.app-has-shell .rhythm-review { padding: clamp(24px, 3vw, 40px); }
body.app-has-shell .rhythm-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
body.app-has-shell .rhythm-heading h2 { margin: 8px 0; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
body.app-has-shell .rhythm-heading p, body.app-has-shell .rhythm-scope { color: #526055; line-height: 1.55; }
body.app-has-shell .rhythm-period { display: grid; gap: 8px; flex: 0 0 210px; color: #526055; font-size: .85rem; font-weight: 700; }
body.app-has-shell .rhythm-period select { width: 100%; min-height: 44px; }
body.app-has-shell .rhythm-date { margin: 20px 0 12px; color: #526055; font-size: .85rem; }
body.app-has-shell .rhythm-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #dfe4dc; border-radius: 16px; background: #dfe4dc; }
body.app-has-shell .rhythm-metrics > div { display: grid; gap: 6px; padding: 20px; background: #f5f7f2; }
body.app-has-shell .rhythm-metrics strong { font-size: 2rem; line-height: 1; color: #244e34; }
body.app-has-shell .rhythm-metrics span { color: #526055; font-size: .9rem; }
body.app-has-shell .rhythm-scope { font-size: .8rem; margin: 10px 0 24px; }
body.app-has-shell .rhythm-insight { padding: 18px 20px; border-left: 3px solid #86a85d; border-radius: 0 12px 12px 0; background: #f2f6ec; }
body.app-has-shell .rhythm-insight p { margin: 0; color: #304834; line-height: 1.6; }
body.app-has-shell .rhythm-insight p + p { margin-top: 10px; }
body.app-has-shell .rhythm-reflection { display: grid; gap: 8px; margin: 24px 0; }
body.app-has-shell .rhythm-reflection label { color: #1d2820; font-weight: 700; }
body.app-has-shell .rhythm-reflection textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cdd7cb; border-radius: 12px; background: #fff; color: #1d2820; font: inherit; resize: vertical; }
body.app-has-shell .rhythm-reflection p { margin: 0; color: #526055; font-size: .8rem; }
body.app-has-shell .rhythm-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body.app-has-shell .rhythm-details > summary { cursor: pointer; padding: 18px 22px; border: 1px solid #dfe4dc; border-radius: 16px; background: #fff; color: #244e34; font-weight: 700; }
body.app-has-shell .rhythm-details-content { display: grid; gap: 18px; padding-top: 18px; }
body.app-has-shell .rhythm-ai-toggle { position: static; width: fit-content; max-width: 100%; justify-self: start; }
@media (max-width: 700px) {
  body.app-has-shell .rhythm-heading { flex-direction: column; }
  body.app-has-shell .rhythm-period { flex: auto; width: 100%; }
  body.app-has-shell .rhythm-metrics > div { padding: 14px 10px; }
  body.app-has-shell .rhythm-metrics strong { font-size: 1.5rem; }
  body.app-has-shell .rhythm-metrics span { font-size: .76rem; }
  body.app-has-shell .rhythm-action { width: 100%; box-sizing: border-box; text-align: center; }
}
