:root {
  --bg: #f4f4f4;
  --surface: #f4f4f4;
  --surface-2: #e8e8e8;
  --border: rgba(0, 0, 0, 0.08);
  --text: #111111;
  --text-dim: #5c5c5c;
  --text-faint: #8a8a8a;
  --accent: #111111;
  --accent-soft: #e0e0e0;
  --accent-ink: #f4f4f4;
  --track: #d8d8d8;
  --danger: #b8402f;
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #0a0a0a;
    --surface-2: #141414;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f2f2;
    --text-dim: #8a8a8a;
    --text-faint: #5c5c5c;
    --accent: #f2f2f2;
    --accent-soft: #1c1c1c;
    --accent-ink: #0a0a0a;
    --track: #1c1c1c;
    --danger: #e0685a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --text-dim: #8a8a8a;
  --text-faint: #5c5c5c;
  --accent: #f2f2f2;
  --accent-soft: #1c1c1c;
  --accent-ink: #0a0a0a;
  --track: #1c1c1c;
  --danger: #e0685a;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0;
}

/* Persistent input bar, visible across every section — a second front
   door into Alfred (see global-bar.js). This and .sidebar are the only
   two real bordered boxes left in the app; everything else is flat
   rows and hairlines (see the Step 3 commit). */
#global-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 10px 10px 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

#global-bar-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

#global-bar-input:focus {
  outline: none;
}

#global-bar-input::placeholder {
  color: var(--text-faint);
}

#global-bar button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 7px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  #global-bar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 640px) {
  #global-bar {
    width: calc(100% - 24px);
    bottom: 12px;
  }
}

/* Above 640px the single 520px column is gone: .app grows to fit an
   asymmetric two-zone layout (sticky glance sidebar + flexible content).
   Below 640px this collapses back to the original centered single column —
   see the max-width:640px block at the bottom of this section. */
.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
}

/* Sidebar IS the nav now (see index.html) — the old top .section-tabs
   bar is gone, and the old glance-tile sidebar it replaced is retired
   (glance.js still runs but its target element no longer exists, so it's
   a harmless no-op; not deleted this pass). */
.sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border);
  padding: 28px 22px;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 40px 130px;
}

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

.sidebar-brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-brand-mark {
  /* Height pinned close to the 17px title text (.sidebar-brand-name)
     so it reads as part of the wordmark, not a big logo bolted on. */
  height: 14px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.sidebar-brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 14px 0 4px;
}

.nav-link {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 700;
  background: var(--surface-2);
}

@media (max-width: 640px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 20px 16px 130px;
  }

  .sidebar-brand {
    flex: 0 0 auto;
  }

  .sidebar-brand-tag {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 4px;
    flex: 1 1 auto;
  }

  .nav-group-label {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    padding: 6px 10px;
  }

}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

.brand-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4px;
}

.settings-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-faint);
  cursor: pointer;
}

.settings-btn svg {
  width: 17px;
  height: 17px;
}

.settings-btn:hover,
.settings-btn.on {
  color: var(--accent);
  border-color: var(--border);
}

/* Settings is now a full content section like Habits or Fitness (see
   #settings-section in index.html) rather than a small dropdown pinned to
   the sidebar. .settings-block just wraps each settings group so multiple
   groups can sit in the section with consistent spacing/width. */
.settings-block {
  max-width: 420px;
}

.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.settings-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 6px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 3px;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
}

.swatch:hover {
  border-color: var(--border);
}

.swatch.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.swatch-name {
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--text-dim);
  text-align: center;
  max-width: 100%;
}

.swatch.selected .swatch-name {
  color: var(--text);
  font-weight: 700;
}

.settings-note {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-faint);
  margin: 11px 0 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 28px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stat-tiles {
  display: flex;
  gap: 10px;
}

.stat-tile {
  padding: 2px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 74px;
}

.stat-tile + .stat-tile {
  border-left: 1px solid var(--border);
}

.ring-tile {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ring {
  width: 46px;
  height: 46px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.ring-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.ring-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stat-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 500;
}

/* One number per screen gets to be the thing you actually look at —
   everything else in the header stays small and muted (.stat-tile-muted). */
.stat-value-primary {
  font-size: 60px;
  font-weight: 300;
  line-height: 1.05;
}

.stat-tile-muted {
  padding: 6px 10px;
}

.stat-tile-muted .stat-value {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-tile-muted .stat-label {
  font-size: 9px;
}

.view-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.tab-btn {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

#add-habit-form {
  display: flex;
  gap: 8px;
}

#add-habit-form[hidden] {
  display: none;
}

#habit-name-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#habit-name-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#add-habit-form button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#add-habit-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#habit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.empty-state {
  color: var(--text-faint);
  font-size: 14px;
  padding: 24px 4px;
  text-align: center;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
}

.habit-row + .habit-row {
  border-top: 1px solid var(--border);
}

.habit-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.habit-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.habit-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.habit-name {
  font-weight: 500;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.habit-row.done .habit-name {
  color: var(--text-dim);
  text-decoration: line-through;
}

.habit-streak {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.habit-history {
  display: flex;
  gap: 3px;
}

.history-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--track);
}

.history-cell.filled {
  background: var(--accent);
}

.delete-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  flex-shrink: 0;
}

.delete-btn:hover {
  color: var(--danger);
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 500;
  font-size: 14px;
}

.month-nav button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  margin: 10px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "IBM Plex Mono", monospace;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekday-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  padding-bottom: 4px;
}

.day-cell {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-cell.is-today {
  border-color: var(--accent);
  border-width: 2px;
}

.day-cell.is-perfect {
  background: var(--accent-soft);
}

.day-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
}

.day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-content: flex-start;
}

.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent);
}

.calendar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-dim);
  margin: 4px 0 0;
}

.calendar-footer strong {
  color: var(--text);
}

.sync-note {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* .section-tabs (the old top tab bar) is gone from index.html — the
   sidebar's .nav-link/.nav-link.active rules (see near .sidebar above)
   are what style navigation now. .section-btn is kept only as the
   behavioral hook script.js's click handler still queries by; it carries
   no visual styling of its own anymore. */

.add-habit-toggle {
  margin-top: 4px;
}

#add-habit-toggle-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--text-faint);
  background: none;
  border: 1px dashed var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
}

#add-habit-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.refresh-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  height: fit-content;
}

.refresh-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.news-column + .news-column {
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

.news-col-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-item a {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}

.news-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.news-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--text-faint);
}

.news-loading,
.news-empty {
  font-size: 12px;
  color: var(--text-faint);
  list-style: none;
}

.horizon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 2px 4px 6px;
}

.horizon-node {
  display: grid;
  justify-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.horizon-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.horizon-node.active .horizon-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.horizon-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  transition: color 0.25s ease;
}

.horizon-node.active .horizon-label {
  color: var(--text);
  font-weight: 700;
}

.horizon-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

/* Dashed stretch = distance still ahead; the solid fill is ground covered. */
.horizon-rail {
  height: 2px;
  margin-top: 5px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}

.horizon-rail-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.goal-carousel-viewport {
  overflow: hidden;
  transition: height 0.3s ease;
}

.goal-carousel-track {
  display: flex;
  width: 200%;
  transition: transform 0.3s ease;
}

.goal-group {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .goal-carousel-viewport,
  .goal-carousel-track,
  .horizon-rail-fill,
  .horizon-dot,
  .horizon-label {
    transition: none;
  }

  .tab-fade-in,
  .habit-pulse {
    animation: none !important;
  }
}

/* Tab switch: content fades/slides in instead of just appearing.
   Reduced-motion users never get the class added (see script.js). */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-fade-in {
  animation: tabFadeIn 0.22s ease;
}

/* Habit row: a brief pulse on check-off, on top of the existing
   strikethrough, instead of just the strikethrough alone. */
@keyframes habitPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  45% {
    transform: scale(1.015);
    opacity: 0.82;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.habit-pulse {
  animation: habitPulse 0.15s ease;
}

#goal-list-short,
#goal-list-long {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.goal-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px;
  border-left: 3px solid transparent;
}

.goal-row + .goal-row {
  border-top: 1px solid var(--border);
}

.goal-row.complete {
  border-left-color: var(--accent);
}

.goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.goal-name {
  font-weight: 500;
  font-size: 14.5px;
}

.goal-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.goal-badge-complete {
  color: var(--accent);
  font-weight: 500;
}

.goal-badge-overdue {
  color: var(--danger);
}

.goal-bar-track {
  height: 8px;
  background: var(--track);
  border-radius: 99px;
  overflow: hidden;
}

.goal-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.goal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.goal-progress-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.goal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.goal-step-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.goal-step-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

#add-goal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#add-goal-form[hidden] {
  display: none;
}

#add-goal-form input,
#add-goal-form select {
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#add-goal-form input:focus-visible,
#add-goal-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#goal-name-input {
  flex: 1 1 100%;
}

#goal-term-input {
  flex: 1 1 120px;
}

#goal-target-input {
  flex: 1 1 70px;
  width: 70px;
}

#goal-unit-input {
  flex: 1 1 120px;
}

#goal-deadline-input {
  flex: 1 1 140px;
}

#add-goal-form button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 3px 10px;
  background: none;
  border: none;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  transition: border-color 0.2s ease;
}

.day-chip.rest {
  border-bottom-style: dashed;
}

.day-chip.is-today {
  border-bottom-color: var(--accent);
}

.day-chip.selected {
  border-bottom-color: var(--accent);
  border-bottom-width: 3px;
}

.day-chip-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.day-chip-title {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-chip.rest .day-chip-title {
  color: var(--text-faint);
  font-weight: 500;
}

.day-chip-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
}

.volume-bar {
  width: 2.5px;
  height: 9px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.day-chip.selected .volume-bar {
  opacity: 1;
}

.session {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-day {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
  font-weight: 500;
}

/* Reads as a heading until you click it, then behaves like the input it is. */
.session-title-input {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px dashed transparent;
  padding: 2px 0;
  width: 100%;
}

.session-title-input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 15px;
}

.session-title-input:hover {
  border-bottom-color: var(--border);
}

.session-title-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.exercise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.exercise-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
}

.exercise-row + .exercise-row {
  border-top: 1px solid var(--border);
}

.exercise-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.exercise-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.exercise-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-row.done .exercise-name {
  color: var(--text-dim);
  text-decoration: line-through;
}

.exercise-detail {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}

#add-exercise-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#add-exercise-form[hidden] {
  display: none;
}

#add-exercise-form input {
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#add-exercise-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#exercise-name-input {
  flex: 1 1 100%;
}

#exercise-sets-input {
  flex: 1 1 70px;
  width: 70px;
}

#exercise-reps-input {
  flex: 1 1 110px;
}

#add-exercise-form button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.target-input {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--border);
  padding: 0;
  width: 58px;
}

.target-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.budget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.budget-number {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.budget-number.over {
  color: var(--danger);
}

.budget-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* One bar, one segment per meal: how much of the budget is gone, and where. */
.budget-bar {
  display: flex;
  gap: 2px;
  height: 12px;
  background: var(--track);
  border-radius: 99px;
  overflow: hidden;
}

.budget-bar.over {
  box-shadow: inset 0 0 0 1.5px var(--danger);
}

.budget-seg {
  background: var(--accent);
  transition: width 0.3s ease;
}

.budget-seg:first-child {
  border-radius: 99px 0 0 99px;
}

.budget-seg:last-child {
  border-radius: 0 99px 99px 0;
}

.seg-0 { opacity: 1; }
.seg-1 { opacity: 0.76; }
.seg-2 { opacity: 0.54; }
.seg-3 { opacity: 0.34; }

.budget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.quick-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.quick-add-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 2px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
}

.quick-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.quick-chip-kcal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--text-faint);
}

#meal-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meal-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.meal-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.meal-total {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
}

.food-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.food-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 2px;
}

.food-row + .food-row {
  border-top: 1px solid var(--border);
}

.food-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-macros {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}

#add-food-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#add-food-form[hidden] {
  display: none;
}

#add-food-form input,
#add-food-form select {
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#add-food-form input:focus-visible,
#add-food-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#food-name-input {
  flex: 1 1 100%;
}

#food-kcal-input {
  flex: 1 1 80px;
  width: 80px;
}

#food-protein-input {
  flex: 1 1 90px;
  width: 90px;
}

#food-meal-input {
  flex: 1 1 110px;
}

#add-food-form button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.estimator-row {
  display: flex;
}

#estimator-toggle-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
}

#estimator-toggle-btn::before {
  content: "○ ";
}

#estimator-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

#estimator-toggle-btn.on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

#estimator-toggle-btn.on::before {
  content: "● ";
}

.estimator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.estimator[hidden] {
  display: none;
}

.estimator-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.field-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.field-input-wrap input {
  flex: 1;
  min-width: 0;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}

.field-input-wrap input:focus {
  outline: none;
}

.field-input-wrap:focus-within {
  border-color: var(--accent);
}

.field-unit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.field select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}

.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.estimator-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.estimator-value-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.estimator-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
}

.estimator-unit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
}

#use-estimate-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
}

#use-estimate-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.estimator-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-faint);
  margin: 0;
}

.scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.budget-bar-wrap {
  position: relative;
  margin: 14px 0 13px;
}

.budget-stop {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  transform: translateX(-1px);
}

.budget-stop[hidden] {
  display: none;
}

.stop-cap {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 99px;
}

.budget-stop-target {
  background: var(--accent);
}

.budget-stop-target .stop-cap {
  background: var(--accent);
}

.budget-stop-maintain {
  background: var(--text);
}

.budget-stop-maintain .stop-cap {
  background: var(--bg);
  border: 2px solid var(--text);
}

/* Maintenance labels above the bar, target below, so the two never collide
   when the values sit close together. */
.stop-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.budget-stop-maintain .stop-label {
  bottom: calc(100% + 5px);
  color: var(--text-dim);
}

.budget-stop-target .stop-label {
  top: calc(100% + 5px);
  color: var(--accent);
  font-weight: 500;
}

.scale-relation {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin: 0;
}

.estimator-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

#pin-maintenance-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

#pin-maintenance-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.ghost-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

#use-estimate-btn.ghost-btn {
  background: none;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

#use-estimate-btn.ghost-btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
}

.intensity-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.intensity-label {
  margin: 0;
}

.intensity-value {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
}

#intensity-slider {
  width: 100%;
  margin: 8px 0 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

#intensity-slider:disabled {
  cursor: default;
}

.settings-panel.no-tint .intensity-row,
.settings-panel.no-tint #intensity-slider,
.settings-panel.no-tint .intensity-ends {
  opacity: 0.35;
}

.intensity-ends {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.settings-version {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Water tracker (Food section) */
.water-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.water-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
}

.water-total {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.water-target-label {
  font-size: 13px;
  color: var(--text-dim);
}

.water-bar-wrap {
  height: 8px;
  border-radius: 99px;
  background: var(--track);
  overflow: hidden;
}

.water-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.water-actions {
  display: flex;
  gap: 8px;
}

.water-actions button {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  cursor: pointer;
}

.water-actions button:active {
  background: var(--track);
}

/* Food lookup (FoodData Central search) */
.food-lookup-row {
  display: flex;
  gap: 8px;
}

.food-lookup-row input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#food-lookup-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.food-lookup-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

.food-lookup-item {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.food-lookup-item:last-child {
  border-bottom: none;
}

.food-lookup-item:hover,
.food-lookup-item:active {
  background: var(--surface-2);
}

.food-lookup-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Alfred */
.alfred-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 0;
}

.alfred-empty {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.alfred-entry {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.alfred-role {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.alfred-you {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.alfred-reply {
  border: 1px solid var(--border);
}

.alfred-loading {
  color: var(--text-dim);
}

.alfred-quick {
  margin: 10px 0;
}

.alfred-quick button {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

#alfred-form {
  display: flex;
  gap: 8px;
}

#alfred-form input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#alfred-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#alfred-form button {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Blueprint / Review / Recovery / Mindset / Reading / Markets / Notes —
   these are all the same simple timestamped-log pattern (journal.js), so
   they share one set of styles instead of one per section. */
.section-header-simple {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  max-width: 60ch;
}

.journal-form {
  display: flex;
  gap: 8px;
}

.journal-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 2px;
}

.journal-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.journal-input::placeholder {
  color: var(--text-faint);
}

.journal-form button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 7px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.journal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.journal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
}

.journal-row + .journal-row {
  border-top: 1px solid var(--border);
}

.journal-row-body {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.journal-text {
  margin: 0;
  font-size: 14px;
}

.journal-time {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

.overview-status {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.overview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Mini-overview: condensed header shown above every section except
   Overview itself (see #mini-overview in index.html, toggled in
   switchSection() in script.js) — just banked count + best streak,
   not the full Overview page. */
.mini-overview {
  gap: 20px;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
}

.mini-overview:not([hidden]) {
  display: flex;
}

.mini-overview-item strong {
  color: var(--text);
  font-weight: 600;
}

/* Blueprint's week plan */
.week-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.week-plan-days {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.plan-day-tab {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 5px 10px;
}

#plan-entry-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#plan-entry-form input[type="time"] {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  padding: 7px 2px;
}

#plan-entry-form input[type="text"] {
  flex: 1;
  min-width: 120px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 7px 2px;
}

#plan-entry-form input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

#plan-entry-form button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 7px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.plan-row.done .journal-text {
  color: var(--text-dim);
  text-decoration: line-through;
}

.plan-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Cross-device sync settings (sync.js) */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.settings-form input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 2px;
  width: 100%;
}

.settings-form input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.sync-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-id-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.sync-id-row button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 7px;
  background: none;
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
}

.account-actions {
  display: flex;
  gap: 8px;
}

.account-actions button {
  flex: 1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
}

.account-status {
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 8px 0 0;
  line-height: 1.4;
}
