/* ══════════════ Time Block ══════════════ */
.time-block {
  background: var(--surface);
  border-radius: var(--r);
  margin-bottom: 12px;
  box-shadow: var(--sh);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
  animation: slideUp .35s var(--ease) forwards;
  opacity: 0;
}
.time-block:nth-child(1) { animation-delay: 0s; }
.time-block:nth-child(2) { animation-delay: .05s; }
.time-block:nth-child(3) { animation-delay: .08s; }
.time-block:nth-child(4) { animation-delay: .11s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.block-header:active { background: var(--hover); }
.morning-hdr { border-left-color: var(--morning); }
.daytime-hdr { border-left-color: var(--daytime); }
.evening-hdr { border-left-color: var(--evening); }
.night-hdr   { border-left-color: var(--night); }

.block-emoji { font-size: 22px; line-height: 1; }
.block-info  { flex: 1; }
.block-name  { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.block-time  { font-size: 12px; color: var(--text3); margin-top: 2px; font-weight: 450; }
.block-count {
  font-size: 12px;
  font-weight: 650;
  color: var(--text3);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
}
.block-add {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  opacity: 0;
}
.block-header:hover .block-add { opacity: 1; }
.block-add:hover { background: var(--pri-light); color: var(--pri); }

.block-chevron {
  font-size: 11px;
  color: var(--text4);
  transition: transform .25s var(--ease);
}
.block-chevron.collapsed { transform: rotate(-90deg); }
.block-body { padding: 0 0 6px; }
.block-body.collapsed { display: none; }

/* ══════════════ Item Row ══════════════ */
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  transition: background .12s;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}
.item:active { background: var(--hover); }
.item + .item { border-top: 1px solid rgba(0,0,0,.03); }
.item.sub { padding-left: 54px; }
.item.conflict { background: #fffbf5; border-left: 3px solid var(--warn); }
.item.item-override { background: rgba(38,85,212,.03); border-left: 2px dashed var(--pri); }
.item.skipped { opacity: .5; }
.item.skipped .item-name { color: var(--text4); text-decoration: line-through; }

.skip-c { border-color: var(--text4) !important; color: var(--text4) !important; font-size: 14px; font-weight: 700; }
.tag-skip { background: var(--bg-warm); color: var(--text3); }
.tag-temp { background: var(--pri-light); color: var(--pri); }

.conflict-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--warn);
  background: var(--warn-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Check circle */
.check-c {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 11px;
  transition: all .25s var(--ease);
  font-weight: 700;
  cursor: pointer;
}
.check-c.no-track { border-color: transparent; cursor: default; pointer-events: none; }
.item.done .check-c {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  box-shadow: 0 2px 6px rgba(52,199,89,.25);
}
.item.done .item-name {
  color: var(--text4);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* Schedule / weekly dots */
.sched-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,149,0,.15);
}
.weekly-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.tag-weekly { background: #d1fae5; color: #065f46; }

/* Item content */
.item-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}
.item-time .override {
  font-size: 10px;
  color: var(--pri);
  text-decoration: line-through;
  display: block;
}
.item-info  { flex: 1; min-width: 0; }
.item-name  { font-size: 15px; font-weight: 520; line-height: 1.4; letter-spacing: -0.01em; transition: color .2s; }
.item-meta  { font-size: 11px; color: var(--text3); margin-top: 2px; }
.item-tag   {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ══════════════ Tags ══════════════ */
.tag-faith    { background: #fef3c7; color: #92400e; }
.tag-health   { background: #dcfce7; color: #166534; }
.tag-work     { background: #dbeafe; color: #1e40af; }
.tag-growth   { background: #ede9fe; color: #5b21b6; }
.tag-life     { background: #fce7f3; color: #9d174d; }
.tag-schedule { background: var(--warn-light); color: #c2410c; }
.tag-group    { background: #e0f2fe; color: #0369a1; font-size: 10px; padding: 2px 6px; }
.tag-meal     { background: #fef3c7; color: #92400e; }
.tag-exercise { background: #dcfce7; color: #166534; }
.tag-meeting  { background: #ede9fe; color: #5b21b6; }
.tag-travel   { background: #fce7f3; color: #9d174d; }
.tag-monthly  { background: #fef3c7; color: #92400e; }

/* Group chips in manage modal */
.grp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.grp-chip {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text3);
  font-family: inherit;
  transition: all .15s var(--ease);
}
.grp-chip:hover { border-color: var(--text4); color: var(--text2); }
.grp-chip.sel   { border-color: var(--pri); color: var(--pri); background: var(--pri-light); }

/* ══════════════ Item Actions ══════════════ */
.item-acts {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity .15s;
}
@media (hover: hover)  { .item:hover .item-acts { opacity: 1; } }
@media (hover: none)   { .item-acts { opacity: 1; } }

.item-act {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--r-xs);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: all .15s;
}
.item-act:hover          { background: var(--bg); color: var(--text); }
.item-act.del:hover      { background: var(--err-light); color: var(--err); }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.pop { animation: pop .25s var(--ease); }
