/* ============================================================
   Enfoco — App Shell & Layout
   Import order: tokens.css → app.css
   ============================================================ */

/* ============================================================
   Dark mode — applied via .dark-mode class on <html>
   Keeps the warm, calm palette — just inverted in brightness.
   ============================================================ */
.dark-mode {
  --cream:       #1E1B17;
  --cream-deep:  #2A2520;
  --surface:     #2E2924;
  --ink:         #F0E8DC;
  --ink-soft:    #B8AA98;
  --ink-faint:   #7A6E62;
  --sage:        #8FAF94;
  --sage-deep:   #A8C9AD;
  --sage-tint:   #1E2E20;
  --terra:       #D98C6E;
  --terra-deep:  #E8A882;
  --terra-tint:  #2E1E16;
  --line:        #3A342C;
  --bg:          var(--cream);
  --text:        var(--ink);
  --text-muted:  var(--ink-soft);
  --primary:     var(--sage);
  --primary-strong: var(--sage-deep);
  --focus-ring:  var(--sage-deep);
}

/* User-controlled reduced motion override (set via JS class on <html>) */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Force light mode — this app has no dark theme in v1 */
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  /* hard fallback in case CSS variables aren't resolved yet */
  background-color: #FBF7F0;
  background-color: var(--bg);
  color: #2E2B27;
  color: var(--text);
  min-height: 100dvh;
  /* prevent content from hiding under fixed nav */
  padding-bottom: var(--nav-h);
}

/* ---- App layout ---- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  max-width: 100%;
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.app-header__ring {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.app-header__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

.app-header__gear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.app-header__gear:hover { color: var(--ink); background: var(--cream-deep); }
.app-header__gear:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Main content area ---- */
main {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4);
}

/* ---- Views ---- */
.view { display: none; }
.view.view--active { display: block; }

/* ---- Bottom nav ---- */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 10;
  /* safe area for notched phones */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-nav__tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: var(--tap-min);
  padding: var(--sp-2) var(--sp-1);
  transition: color var(--dur) var(--ease);
  position: relative;
}

.app-nav__tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.app-nav__tab[aria-selected="true"] { color: var(--sage-deep); }

.app-nav__tab[aria-selected="true"] .nav-icon { stroke: var(--sage-deep); }

.app-nav__tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--sage);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.app-nav__tab[aria-selected="true"]::before { transform: scaleX(1); }

.nav-icon {
  width: 24px;
  height: 24px;
  stroke: var(--ink-faint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur) var(--ease);
  flex-shrink: 0;
}

/* ---- Placeholder view styling ---- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  min-height: 50dvh;
}

.placeholder__icon {
  width: 64px;
  height: 64px;
  opacity: 0.25;
}

.placeholder__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
}

.placeholder__body {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 28ch;
  line-height: var(--lh-loose);
}

/* ---- Offline banner ---- */
.offline-banner {
  position: fixed;
  top: 52px; /* below header */
  left: 0; right: 0;
  z-index: 15;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-soft);
  padding: var(--sp-2) var(--sp-4);
}

/* ---- Settings panel ---- */
.settings-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 20;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-4);
  max-width: var(--app-max);
  margin: 0 auto;
}

.settings-panel.settings-panel--open { display: block; }

.settings-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.settings-panel__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
}

.settings-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-panel__close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.settings-section { margin-bottom: var(--sp-6); }

.settings-section__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}

.settings-disclaimer {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-loose);
  padding: var(--sp-4);
  background: var(--cream-deep);
  border-radius: var(--r-md);
}

.settings-planner-link {
  display: block;
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--fs-sm);
  margin-top: var(--sp-4);
}

.settings-planner-link:hover { text-decoration: underline; }
.settings-planner-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.settings-version {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: var(--sp-5);
}

/* ---- Language switcher ---- */
.lang-switcher {
  display: flex;
  gap: var(--sp-2);
}

.lang-btn {
  flex: 1;
  min-height: var(--tap-min);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lang-btn--active {
  background: var(--sage-tint);
  border-color: var(--sage);
  color: var(--sage-deep);
}

.lang-btn:hover:not(.lang-btn--active) { background: var(--cream-deep); }

.lang-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Toggle switch ---- */
.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-height: var(--tap-min);
}

.settings-toggle:last-child { border-bottom: none; }

.settings-toggle__input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.settings-toggle__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}

.settings-toggle__name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
}

.settings-toggle__desc {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  line-height: var(--lh-normal);
}

.settings-toggle__track {
  width: 44px;
  height: 26px;
  background: var(--line);
  border-radius: var(--r-pill);
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease);
}

.settings-toggle__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--surface);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}

/* checked state */
.settings-toggle__input:checked ~ .settings-toggle__track {
  background: var(--sage);
}
.settings-toggle__input:checked ~ .settings-toggle__track .settings-toggle__thumb {
  transform: translateX(18px);
}

.settings-toggle__input:focus-visible ~ .settings-toggle__track {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================
   Focus Timer
   ============================================================ */

.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-4);
}

.timer__focus-line {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
  background: var(--sage-tint);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  max-width: 32ch;
  line-height: var(--lh-normal);
}

.timer__focus-line strong { color: var(--sage-deep); }

/* Presets */
.timer__presets {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
}

.preset-btn {
  min-height: var(--tap-min);
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}

.preset-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.preset-btn--active {
  background: var(--sage-tint);
  border-color: var(--sage);
  color: var(--sage-deep);
}

.preset-label {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-faint);
}

.preset-btn--active .preset-label { color: var(--sage); }

/* Custom input */
.timer__custom-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.timer__custom-label {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.timer__custom-input {
  width: 80px;
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  min-height: var(--tap-min);
}

.timer__custom-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}

/* Ring */
.timer__ring-wrap {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer__ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.timer__ring-progress {
  transition: stroke var(--dur) var(--ease);
}

.timer__display {
  font-family: var(--font-display);
  font-size: var(--fs-timer);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  z-index: 1;
  cursor: default;
}

/* Controls */
.timer__controls {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

.btn--secondary {
  background: var(--cream-deep);
  color: var(--ink);
}
.btn--secondary:hover { background: var(--line); }

.btn--ghost {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}
.btn--ghost:hover { background: var(--cream-deep); }

/* Finish */
.timer__finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.timer__finish-msg {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--sage-deep);
}

.timer__finish-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hint */
.timer__hint {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--ink-faint);
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 30ch;
  line-height: var(--lh-loose);
}

/* ============================================================
   Quick Capture
   ============================================================ */

.capture {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.capture__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.capture__textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  line-height: var(--lh-normal);
  transition: border-color var(--dur) var(--ease);
}

.capture__textarea::placeholder { color: var(--ink-faint); }

.capture__textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}

/* ---- Buttons (shared) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 var(--sp-5);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--sage);
  color: var(--surface);
  align-self: flex-end;
}

.btn--primary:hover { background: var(--sage-deep); }

/* ---- Capture item ---- */

.capture__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.capture__empty {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}

.capture-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.capture-item--today {
  border-color: var(--sage);
  background: var(--sage-tint);
}

.capture-item__today-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
}

.capture-item__text {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  white-space: pre-wrap;
  word-break: break-word;
}

.capture-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.capture-item__time {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.capture-item__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.capture-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
  min-height: var(--tap-min);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.capture-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.capture-btn--ghost { color: var(--ink-soft); }
.capture-btn--ghost:hover { background: var(--cream-deep); border-color: var(--sage); color: var(--sage-deep); }

.capture-btn--danger { color: var(--terra-deep); border-color: var(--terra-tint); }
.capture-btn--danger:hover { background: var(--terra-tint); }

/* ============================================================
   Task Chopper
   ============================================================ */

.chopper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* New task form */
.chop-new-task {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.chop-new-task__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink);
}

.chop-new-task__row {
  display: flex;
  gap: var(--sp-2);
}

.chop-new-task__input {
  flex: 1;
  min-height: var(--tap-min);
  padding: 0 var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}

.chop-new-task__input::placeholder { color: var(--ink-faint); }
.chop-new-task__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}

/* Templates */
.chop-templates { display: flex; flex-direction: column; gap: var(--sp-2); }

.chop-templates__label {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chop-templates__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chop-template-pill {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
  min-height: 36px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.chop-template-pill:hover {
  background: var(--sage-tint);
  border-color: var(--sage);
  color: var(--sage-deep);
}

.chop-template-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Empty state */
.chop-empty {
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
}

.chop-empty__text {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}

/* Task list */
.chop-list { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Task card */
.chop-task {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.chop-task--complete {
  border-color: var(--sage);
  background: var(--sage-tint);
}

.chop-task__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.chop-task__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  line-height: var(--lh-tight);
  flex: 1;
}

.chop-task__header-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

.chop-task__celebrate {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--sage-deep);
  font-size: var(--fs-sm);
}

.chop-task__progress {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.chop-task__hint-first {
  font-size: var(--fs-sm);
  color: var(--terra);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-4);
  background: var(--terra-tint);
  border-radius: var(--r-md);
  line-height: var(--lh-normal);
}

.chop-task__microcopy {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--ink-faint);
  font-size: var(--fs-xs);
  line-height: var(--lh-loose);
}

/* Steps */
.chop-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.chop-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}

.chop-step:last-child { border-bottom: none; }

.chop-step--done .chop-step__text {
  text-decoration: line-through;
  color: var(--ink-faint);
}

.chop-step--first .chop-step__text { font-weight: 700; }

/* Custom checkbox */
.chop-step__check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chop-step__checkbox {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.chop-step__box {
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
}

.chop-step__checkbox:checked + .chop-step__box {
  background: var(--sage);
  border-color: var(--sage);
}

.chop-step__checkbox:checked + .chop-step__box::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.chop-step__checkbox:focus-visible + .chop-step__box {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.chop-step__star { color: var(--terra); }

.chop-step__text {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--text);
}

.chop-step__actions {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}

/* Add step inline */
.chop-add-step {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.chop-add-step__input {
  flex: 1;
  min-height: 40px;
  padding: 0 var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--cream-deep);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.chop-add-step__input::placeholder { color: var(--ink-faint); }
.chop-add-step__input:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--surface);
}

/* Chopper buttons */
.chop-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 var(--sp-3);
  min-height: 36px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.chop-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.chop-btn--start {
  color: var(--sage-deep);
  border-color: var(--sage);
}
.chop-btn--start:hover { background: var(--sage-tint); }

.chop-btn--add {
  color: var(--sage-deep);
  border-color: var(--sage);
  min-height: 40px;
}
.chop-btn--add:hover { background: var(--sage-tint); }

.chop-btn--delete {
  color: var(--ink-faint);
  border-color: transparent;
  padding: 0 var(--sp-2);
}
.chop-btn--delete:hover { color: var(--terra-deep); background: var(--terra-tint); }

.chop-btn--archive {
  color: var(--sage-deep);
  border-color: var(--sage);
}
.chop-btn--archive:hover { background: var(--sage-tint); }

.chop-btn--danger { color: var(--terra-deep); border-color: var(--terra-tint); }
.chop-btn--danger:hover { background: var(--terra-tint); }

/* ---- Live region (screen readers) ---- */
.sr-live {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
