/* ==========================================================================
   To-Dos & Household Errands View (1204x800)
   Executive 3-Lane Task Console for Lucy & You
   ========================================================================== */

.tasks {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex: none;
  gap: 16px;
}

.t-title {
  display: flex;
  flex-direction: column;
}
.t-title .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 2px;
}
.t-title h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.t-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: var(--r-pill);
}
.t-progress-val {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.t-bar-box {
  width: 90px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.t-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: width 0.3s var(--ease);
}

/* 3-Lane Grid */
.ch-lanes {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ch-lane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow), var(--card-highlight);
}

.ch-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.ch-lane-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-lane-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex: none;
}
.ch-lane-avatar--lucy { background: var(--lucy-brand); box-shadow: 0 0 8px var(--lucy-glow); }
.ch-lane-avatar--you { background: var(--amazon-brand); box-shadow: 0 0 8px var(--amazon-glow); }
.ch-lane-avatar--shared { background: #4F46E5; box-shadow: 0 0 8px rgba(79, 70, 229, 0.3); }

.ch-lane-title {
  display: flex;
  flex-direction: column;
}
.ch-lane-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ch-lane-sub {
  font-size: 11px;
  color: var(--mute);
}

.ch-lane-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  background: var(--card-hover);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* List of Tasks — Apple Inset Grouped Flush Rows */
.ch-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-subtle);
  cursor: pointer;
  transition: background 0.12s var(--ease), opacity 0.2s var(--ease);
  position: relative;
  text-align: left;
}
.ch-row:last-child {
  border-bottom: none;
}
.ch-row:hover, .ch-row:active {
  background: var(--card-hover);
}
.ch-row.is-done {
  opacity: 0.45;
  background: transparent;
}
.ch-row.is-done .ch-row-title {
  text-decoration: line-through;
  color: var(--mute);
}

.ch-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  color: transparent;
  flex: none;
  transition: all 0.15s ease;
}
.ch-row.is-done .ch-checkbox {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.ch-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.ch-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.ch-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ch-tag-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.ch-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
}
