:root {
  --paper: #f6f5f0;
  --card: #fffefa;
  --ink: #25372f;
  --muted: #6c786f;
  --line: #e1e5dd;
  --accent: #2f6851;
  --accent-soft: #e8efe8;
  --green: #36654d;
  --green-soft: #e8efe4;
  --orange: #95623e;
  --orange-soft: #f4eadb;
  --red: #a2473f;
  --sidebar: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1.1px;
  line-height: 1.15;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  line-height: 1.65;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  text-transform: uppercase;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}
.btn.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 3px #183b2310;
}
.btn.primary:hover {
  background: #25573f;
}
.btn.secondary {
  background: var(--card);
  border: 1px solid var(--line);
}
.btn.secondary:hover {
  border-color: #a9b9a7;
}
.btn.soft {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn.danger {
  color: var(--red);
  background: #f8eae5;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  padding: 5px 0;
}
.text-btn:hover {
  text-decoration: underline;
}
.text-btn svg {
  width: 15px;
  height: 15px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef0e9;
  color: #5e6b60;
  white-space: nowrap;
  max-width: 100%;
}
.tag svg {
  width: 11px;
  height: 11px;
}
.tag.work {
  background: #e7ecef;
  color: #4d6777;
}
.tag.health {
  background: var(--green-soft);
  color: var(--green);
}
.tag.personal {
  background: var(--orange-soft);
  color: var(--orange);
}
.tag.learning {
  background: #eee9f2;
  color: #7b5e8c;
}
.tag.high {
  color: var(--red);
  background: #f9eae3;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px 19px;
  gap: 12px;
}
.card-body {
  padding: 0 25px 25px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.empty svg {
  width: 26px;
  height: 26px;
  color: #809580;
}
.empty strong {
  color: var(--ink);
  font-weight: 500;
}
.loading {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  letter-spacing: -2px;
}
.loading-dot {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* Navigation is quiet and persistent; capture stays one action away. */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d9c92b;
  border-radius: 11px;
  background: #ffffff0b;
  color: #c4dca7;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.logo small {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 500;
  margin-left: auto;
  color: #9eb3a1;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 32px 18px 20px;
  background: #203b31;
  color: #f1f4e9;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}
.sidebar .logo {
  padding: 0 10px 34px;
}
.space-switch {
  background: #ffffff08;
  border: 1px solid #c6dbce24;
  border-radius: 11px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
}
.space-switch .eyebrow {
  color: #a7bcae;
  font-size: 8px;
  letter-spacing: 1px;
}
.space-symbol {
  width: 30px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2d2b6;
}
.space-symbol svg {
  width: 18px;
  height: 18px;
}
.space-switch select {
  width: 100%;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: #f0f3e9;
  padding: 5px 0 0;
  cursor: pointer;
  max-width: 147px;
}
.space-switch option {
  background: #203b31;
  color: white;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #a5bcac;
  padding: 0 13px;
  margin-bottom: 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  font-size: 12px;
  text-align: left;
  border-radius: 9px;
  color: #c5d4c8;
}
.nav button:hover {
  background: #ffffff09;
  color: white;
}
.nav button.active {
  background: #d7e5c818;
  color: #f4f6ed;
  box-shadow: inset 3px 0 #c8daa9;
  font-weight: 550;
}
.nav svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: #d1dfc9;
  min-width: 22px;
  padding: 2px 5px;
  text-align: center;
  border-radius: 5px;
  background: #e3edda12;
}
.nav-divider {
  height: 1px;
  background: #dce6dd20;
  margin: 19px 12px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-capture {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #b3cfb539;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 22px;
  color: #dce7d4;
  font-size: 11px;
}
.sidebar-capture:hover {
  background: #ffffff09;
}
.sidebar-capture svg {
  width: 16px;
  height: 16px;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  color: #9db5a4;
  border: 1px solid #b3cfb52b;
  padding: 3px 4px;
  border-radius: 4px;
  margin-left: auto;
}
.profile {
  padding: 18px 7px 0;
  border-top: 1px solid #dce6dd20;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e6ddcc;
  color: #675944;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.profile-name {
  font-size: 12px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-role {
  font-size: 10px;
  color: #a7bcae;
  margin-top: 4px;
}
.profile .icon-btn {
  color: #b4c8b9;
}
.profile .icon-btn:hover {
  background: #ffffff0c;
  color: white;
}
.shell {
  margin-left: var(--sidebar);
}
.topbar {
  min-height: 64px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 11px;
  color: #768075;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: none;
  width: 155px;
  font-size: 11px;
  padding: 8px 0;
  color: var(--ink);
}
.search input::placeholder {
  color: var(--muted);
}
.header-separator {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.mobile-menu,
.mobile-search {
  display: none;
}
.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 42px;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.page-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 1px;
}

/* Fast capture precedes a task list; the narrow rail holds day context. */
.capture-composer {
  padding: 19px 24px 17px;
  margin-bottom: 24px;
  background: #fffefa;
  border-color: #cbd9c8;
  box-shadow: 0 4px 20px #2f4a2b04;
}
.capture-composer:focus-within {
  border-color: #6f9675;
  box-shadow: 0 0 0 3px #729a7910;
}
.capture-composer .eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.2px;
}
.capture-key {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #73866d;
  font-size: 10px;
}
.capture-key svg {
  width: 14px;
  height: 14px;
}
.capture-composer textarea {
  display: block;
  width: 100%;
  border: 0;
  resize: vertical;
  min-height: 44px;
  max-height: 240px;
  background: transparent;
  padding: 14px 0 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  outline: none;
}
.capture-composer textarea::placeholder {
  color: #7d877b;
  opacity: 1;
}
.capture-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.capture-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #62725f;
  padding: 4px 0;
}
.capture-caption svg {
  width: 14px;
  height: 14px;
}
.capture-caption span {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  font-size: 10px;
}
.capture-bottom .btn {
  padding: 9px 16px;
}
.capture-composer .form-error:empty {
  display: none;
}
.voice-button {
  color: var(--accent);
  background: #eef2e9;
  width: 40px;
  height: 40px;
}
.voice-button.recording {
  background: #f4ddd9;
  color: #994d43;
  animation: pulse 1.5s infinite;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 18px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 600;
}
.section-heading .row {
  gap: 9px;
  flex-wrap: wrap;
}
.section-heading .count {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e9eee5;
  color: #62765b;
}
.attention-count {
  font-size: 10px;
  color: #986345;
  padding-left: 6px;
}
.section-toolbar {
  margin-bottom: 12px;
}
.work-section {
  min-width: 0;
}
.work-section .task-list {
  padding: 0;
  border-top: 1px solid var(--line);
}
.work-section .task-item {
  padding: 16px 0;
}
.all-tasks {
  margin-top: 12px;
}
.context-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.context-section .section-heading {
  padding-bottom: 12px;
}
.context-section .goal-list {
  padding: 0;
}
.context-section .goal-mini {
  padding: 13px 0 18px;
}
.context-section .goal-mini h3 {
  margin: 0 0 12px;
}
.focus-card {
  background: #e9eee3;
  border: 1px solid #dce4d4;
  border-radius: 9px;
  padding: 17px 18px 19px;
}
.focus-card .section-heading {
  padding: 0 0 10px;
  color: #455f3c;
}
.focus-card .section-heading h2 {
  font-size: 11px;
  font-weight: 550;
}
.focus-card .icon-btn {
  height: 24px;
  width: 24px;
}
.focus-content p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.day-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 7px 0;
  color: #64745c;
}
.day-line strong {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.day-summary > .text-btn {
  margin-top: 10px;
}
.recent-notes {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.recent-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  border-top: 1px solid #e7eae1;
}
.recent-note:hover strong {
  color: var(--accent);
}
.recent-note > svg {
  width: 17px;
  height: 17px;
  color: #7a8c6d;
  margin-top: 2px;
}
.recent-note strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.recent-note .grow > span {
  display: block;
  color: #718167;
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-note time {
  flex-shrink: 0;
  padding-top: 3px;
  font-size: 10px;
  color: #718167;
}
.inline-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 15px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
}
.main-col,
.side-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
}
.steps-card .card-head {
  padding-bottom: 15px;
}
.task-list {
  padding: 0 25px;
}
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid #eceee6;
}
.task-item:first-child {
  border: 0;
}
.task-check {
  width: 19px;
  height: 19px;
  border: 1.5px solid #b6c4ae;
  border-radius: 6px;
  margin-top: 2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.task-check:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.task-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.task-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.task-title {
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  padding: 0;
  overflow-wrap: anywhere;
}
.task-title:hover {
  color: var(--accent);
}
.task-item.done .task-title {
  text-decoration: line-through;
  color: #778474;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.task-meta .due {
  font-size: 10px;
  color: var(--muted);
}
.task-meta .overdue {
  color: var(--red);
}
.task-meta button.tag {
  white-space: normal;
  text-align: left;
}
.task-item .edit-action {
  opacity: 0;
  width: 25px;
  height: 25px;
}
.task-item:hover .edit-action,
.task-item:focus-within .edit-action {
  opacity: 1;
}
.task-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eceee6;
  padding: 16px 25px;
  color: #5a7754;
  font-size: 12px;
  width: 100%;
  text-align: left;
  border-radius: 0 0 16px 16px;
}
.task-footer:hover {
  background: #f4f6ed;
}
.task-footer svg {
  width: 16px;
  height: 16px;
}
.segment {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #f1f2eb;
}
.segment button {
  padding: 6px 9px;
  font-size: 10px;
  color: #61705f;
  border-radius: 6px;
  white-space: nowrap;
}
.segment button.active {
  background: #fffefa;
  color: #254a35;
  box-shadow: 0 1px 3px #263b2610;
}
.goal-list {
  padding: 0 25px 5px;
}
.goal-mini {
  padding: 17px 0 21px;
  border-top: 1px solid #eceee6;
}
.goal-mini:first-child {
  border: 0;
  padding-top: 0;
}
.goal-mini h3 {
  font-size: 13px;
  margin: 9px 0 13px;
  font-weight: 450;
  line-height: 1.5;
}
.goal-mini h3 button {
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.progress-row small {
  font-size: 10px;
  color: #68795f;
}
.progress-row progress {
  flex: 1;
  width: 100%;
  height: 5px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: #e7ecdf;
}
.progress-row progress::-webkit-progress-bar {
  background: #e7ecdf;
}
.progress-row progress::-webkit-progress-value {
  background: #71926c;
  border-radius: 4px;
}
.progress-row progress::-moz-progress-bar {
  background: #71926c;
}
.note-card {
  padding: 18px;
  background: #f6f3e9;
  border: 1px solid #e9e6d7;
  border-radius: 10px;
  text-align: left;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.note-card:nth-child(3n + 2) {
  background: #edf0e7;
  border-color: #e0e5d6;
}
.note-card:nth-child(3n) {
  background: #ecf0f1;
  border-color: #e1e6e6;
}
.note-card:hover {
  border-color: #a4b49a;
}
.note-card h3 {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.note-card p {
  font-size: 12px;
  color: #65715e;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.note-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.note-card .row {
  margin-top: auto;
  padding-top: 4px;
  font-size: 10px;
  color: #66705f;
}
.note-card svg {
  width: 13px;
  height: 13px;
}
.activity-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.activity-section > summary {
  font-size: 11px;
  color: #63745b;
}
.activity-section .activity {
  padding: 18px 0 0;
}
.activity {
  padding: 0 25px 16px;
}
.activity-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  align-items: flex-start;
}
.activity-dot {
  width: 5px;
  height: 5px;
  background: #9aaf8b;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-row p {
  font-size: 11px;
  color: #5f6f58;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.activity-row small {
  font-size: 10px;
  color: #73816c;
}
.footer {
  padding: 30px 0 0;
  font-size: 10px;
  color: #6d7b65;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Lists, editors, connections and account surfaces share the same controls. */
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.area-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.area-filters button {
  padding: 8px 11px;
  font-size: 12px;
  border-radius: 8px;
  color: #62745b;
}
.area-filters button.active {
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: #314d2a;
}
.full-task-list .task-item {
  padding: 21px 0;
}
.goals-grid,
.notes-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.goal-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 255px;
}
.goal-card h2 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.goal-card p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.goal-card .progress-row {
  margin-top: auto;
}
.goal-card footer {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.notes-page-grid .note-card {
  min-height: 225px;
  padding: 25px;
}
.notes-page-grid .note-card h3 {
  font-size: 17px;
}
.graph-card {
  overflow: hidden;
}
.graph-legend {
  padding: 22px 25px;
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
}
.graph-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: #4f806d;
}
.graph-legend span:nth-child(2)::before {
  background: #c19163;
}
.graph-legend span:nth-child(3)::before {
  background: #7c8fbc;
}
.graph-svg {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 650px;
  stroke: none;
  fill: currentColor;
}
.graph-svg .edge {
  stroke: #d8e0d3;
  stroke-width: 1.3;
}
.graph-svg .node {
  cursor: pointer;
}
.graph-svg .node:hover circle {
  stroke: #315d44;
  stroke-width: 2;
}
.graph-svg text {
  font-family: inherit;
  fill: #465e3d;
  font-size: 13px;
  stroke: none;
}
.graph-svg .node-kind {
  font-size: 9px;
  fill: #6d7c62;
}
.demo-banner {
  background: #e8ecde;
  color: #526a44;
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.demo-banner button {
  font-size: 11px;
  text-decoration: underline;
}
.timer-value {
  font-size: 54px;
  text-align: center;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  padding: 25px 0;
}
.timer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.settings-grid,
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-card {
  padding: 26px;
  min-width: 0;
}
.settings-card h2 {
  margin-bottom: 15px;
}
.settings-card p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.settings-card .member {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.settings-card .member:last-child {
  border: 0;
}
.token-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.token-item strong {
  font-size: 12px;
  font-weight: 500;
}
.token-item p {
  font-size: 11px;
}
.integration-hero {
  padding: 32px;
  background: #e8ecdf;
  border-color: #dde4d3;
  margin-bottom: 22px;
}
.integration-hero h2 {
  font-size: 27px;
  font-weight: 500;
  margin: 12px 0;
}
.integration-hero p {
  font-size: 13px;
  color: #586f4f;
  max-width: 550px;
}
.connection-code {
  padding: 15px;
  background: #f3f5ee;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #526b44;
  max-height: 250px;
  overflow: auto;
}
.token-secret {
  width: 100%;
  background: #edf2e7;
  border: 1px solid #dce5cf;
  border-radius: 8px;
  padding: 15px;
  font-family: monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  user-select: all;
}
.warn-text {
  font-size: 11px;
  color: var(--orange);
  line-height: 1.7;
}
.capture-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.capture-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.capture-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: #435d3a;
}
.capture-card .tag svg {
  width: 12px;
  height: 12px;
}
.capture-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.capture-links .text-btn {
  text-align: left;
  overflow-wrap: anywhere;
}
.capture-links:empty {
  display: none;
}
.capture-list > .empty {
  grid-column: 1 / -1;
}
details summary {
  cursor: pointer;
  font-size: 12px;
  color: #526d43;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #53684a;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8e0ce;
  border-radius: 9px;
  background: #fcfdf8;
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #75866a;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
}
.form-error {
  color: var(--red);
  font-size: 12px;
  padding: 8px 0 14px;
  line-height: 1.6;
}
.hidden {
  display: none !important;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 550px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  padding: 28px;
  background: var(--card);
  box-shadow: 0 30px 120px #1d35252b;
  color: var(--ink);
}
dialog::backdrop {
  background: #1e372a66;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
}
.modal-head h2 {
  font-size: 23px;
  font-weight: 500;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.modal-actions .delete {
  margin-right: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field {
  margin-bottom: 0;
}
#modal .capture-composer {
  margin: 0;
  padding: 18px;
}
#modal:has(#capture-form) {
  width: 640px;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translateX(-50%) translateY(80px);
  background: #294e34;
  color: #f4f6ed;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  transition: 0.2s;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bottom-space {
  margin-top: 20px;
}
.subtle-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.checkin-intention {
  margin-top: 12px;
}
.note-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 13px;
}
.graph-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.offline {
  padding: 30px;
  text-align: center;
  color: var(--red);
}

/* The welcome page introduces the same identity without external assets. */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: #203b31;
  color: #eff2e5;
  padding: 46px 64px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.auth-art .logo {
  max-width: 450px;
}
.auth-art .logo small {
  max-width: 120px;
  line-height: 1.6;
  font-size: 8px;
}
.auth-heading {
  margin: auto 0 40px;
  position: relative;
  padding-top: 56px;
  max-width: 500px;
}
.auth-heading .eyebrow {
  color: #b6c9a4;
  margin-bottom: 24px;
  font-size: 9px;
}
.auth-heading h1 {
  font-size: clamp(36px, 3.7vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
  overflow-wrap: anywhere;
  font-weight: 450;
  color: #f5f4e8;
}
.auth-heading p {
  font-size: 13px;
  line-height: 1.85;
  color: #becdbd;
  margin-top: 25px;
  max-width: 350px;
}
.auth-preview {
  border: 1px solid #c3d8bd30;
  border-radius: 14px;
  background: #f2f4df08;
  padding: 20px 22px;
  max-width: 400px;
  margin-bottom: 30px;
}
.auth-preview > .row {
  font-size: 9px;
  letter-spacing: 1px;
  color: #b7cba8;
  margin-bottom: 12px;
}
.auth-preview > .row svg {
  width: 15px;
  height: 15px;
}
.auth-preview-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #c3d8bd1c;
  font-size: 12px;
  color: #e0e8d4;
}
.auth-preview-item svg {
  width: 15px;
  height: 15px;
  color: #c4d7a6;
}
.auth-preview-item span {
  margin-left: auto;
  color: #b8caa9;
  font-size: 9px;
}
.auth-art footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #b0c3a7;
  margin-top: auto;
  padding-top: 15px;
}
.auth-art footer svg {
  width: 12px;
  height: 12px;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
}
.auth-form-wrap {
  width: 350px;
  max-width: 100%;
}
.auth-form-wrap .eyebrow {
  color: #60764e;
  margin-bottom: 18px;
}
.auth-form-wrap h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.auth-form-wrap > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.auth-form-wrap .btn.primary {
  width: 100%;
  margin: 6px 0 20px;
  padding: 14px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-switch button {
  color: var(--accent);
  font-size: 12px;
}
.auth-demo {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 216px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .content {
    padding: 30px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .card-head {
    padding: 21px 20px 17px;
  }
  .card-body {
    padding: 0 20px 20px;
  }
  .task-list,
  .goal-list,
  .activity {
    padding-left: 20px;
    padding-right: 20px;
  }
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .side-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .activity-section {
    grid-column: 1 / -1;
  }
  .notes-page-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-art {
    padding: 35px;
  }
  .auth-heading h1 {
    font-size: 40px;
  }
  .settings-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb > svg:first-child {
    display: none;
  }
}
@media (max-width: 720px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s;
    padding: 28px 16px 20px;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 30px 0 100px #172e2666;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    padding: 0 15px;
    min-height: 64px;
    gap: 8px;
  }
  .topbar > .row {
    gap: 5px;
    min-width: 0;
  }
  .top-actions {
    gap: 5px;
  }
  .mobile-menu,
  .mobile-search {
    display: inline-flex;
  }
  .top-actions .search,
  .header-separator {
    display: none;
  }
  .content {
    padding: 26px 18px;
  }
  .breadcrumb {
    gap: 6px;
    font-size: 10px;
  }
  .breadcrumb span:first-of-type,
  .breadcrumb svg {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 29px;
    letter-spacing: -1.2px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading .btn {
    padding: 10px 13px;
    margin-left: auto;
  }
  .capture-composer {
    padding: 20px 19px 17px;
    margin-bottom: 20px;
  }
  .capture-composer textarea {
    font-size: 16px;
    min-height: 44px;
    padding-top: 20px;
  }
  .capture-composer .eyebrow {
    font-size: 9px;
  }
  .capture-key {
    font-size: 9px;
  }
  .capture-bottom {
    gap: 8px;
  }
  .capture-bottom .row {
    gap: 7px;
  }
  .capture-bottom .btn {
    padding: 10px 13px;
  }
  .capture-caption {
    font-size: 10px;
    gap: 5px;
  }
  .capture-caption svg {
    display: none;
  }
  .dashboard-grid,
  .main-col,
  .side-col {
    gap: 18px;
  }
  .side-col {
    display: flex;
  }
  .note-card {
    padding: 15px;
    min-height: 165px;
  }
  .note-card h3 {
    font-size: 13px;
  }
  .note-card p {
    font-size: 11px;
  }
  .note-card .row {
    font-size: 9px;
  }
  .note-card .row .row {
    display: none;
  }
  .card-head {
    padding: 20px 18px 15px;
  }
  .card-head h2 {
    font-size: 16px;
  }
  .card-head > .row {
    gap: 5px;
  }
  .steps-card .card-head .tag {
    display: none;
  }
  .steps-card .card-head {
    gap: 5px;
  }
  .task-list {
    padding: 0 18px;
  }
  .task-title {
    font-size: 14px;
  }
  .task-item .edit-action {
    opacity: 1;
  }
  .task-footer {
    padding: 16px 18px;
  }
  .segment button {
    font-size: 10px;
    padding: 6px;
  }
  .goals-grid,
  .notes-page-grid,
  .capture-list {
    grid-template-columns: 1fr;
  }
  .view-toolbar {
    gap: 12px;
  }
  .area-filters {
    gap: 2px;
  }
  .area-filters button {
    padding: 8px;
    font-size: 11px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 25px 27px 30px;
    min-height: 260px;
  }
  .auth-art .logo {
    font-size: 31px;
  }
  .auth-heading {
    margin: 32px 0 0;
    padding: 0;
  }
  .auth-heading .eyebrow {
    margin-bottom: 15px;
    font-size: 8px;
  }
  .auth-heading h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .auth-heading p {
    font-size: 12px;
    margin-top: 20px;
  }
  .auth-preview,
  .auth-art footer {
    display: none;
  }
  .auth-form-side {
    padding: 32px 27px 40px;
  }
  .auth-form-wrap h2 {
    font-size: 28px;
  }
  .auth-form-wrap > p {
    margin-bottom: 24px;
  }
  .auth-form-wrap .eyebrow {
    display: none;
  }
  .auth-demo {
    margin-top: 20px;
    padding-top: 20px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .graph-card {
    overflow-x: auto;
  }
  .graph-svg {
    min-width: 680px;
    min-height: 400px;
  }
  .graph-legend {
    gap: 13px;
    font-size: 10px;
  }
  .footer {
    padding-top: 25px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .demo-banner {
    font-size: 9px;
    gap: 8px;
    padding: 9px;
  }
  .demo-banner button {
    font-size: 9px;
  }
  .form-grid {
    gap: 12px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  dialog {
    padding: 23px;
  }
  .modal-actions {
    gap: 8px;
  }
  .modal-actions .btn {
    padding: 10px 12px;
  }
  .integration-hero {
    padding: 25px;
  }
  .integration-hero h2 {
    font-size: 24px;
  }
  #toast {
    left: 50%;
    width: max-content;
  }
}
@media (max-width: 360px) {
  .steps-card .card-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .capture-key {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
