/* ============================ תאריכים ברורים ============================ */
.datehero { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.datehero .dh-num {
  font-size: 3.1rem; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--ink);
  min-width: 2ch; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 10px 6px; box-shadow: var(--shadow-1);
}
.datehero.is-today .dh-num { background: var(--ink); color: var(--bg); border-color: transparent; }
.datehero .dh-wd { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.datehero .dh-md { color: var(--ink-2); font-size: .9375rem; font-weight: 300; margin-top: 2px; }
.datehero .pill {
  display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.datehero .pill.today { background: var(--clay); color: #fff; }
.datehero .pill.past { color: var(--ink-3); }

.daystrip button { padding: 7px 2px 8px; }
.daystrip .dn { font-size: 1.25rem; font-weight: 700; }
.daystrip .dm { font-size: .625rem; color: var(--clay); font-weight: 700; margin-top: -2px; }
.daystrip button[aria-selected="true"] .dm { color: var(--sand); }
.daystrip button.is-today { border-color: var(--clay-line); }

.mcell.today .n { display: inline-flex; align-items: center; gap: 3px; }
.mcell.today .n::after {
  content: 'היום'; font-size: .5625rem; font-weight: 700; color: #fff;
  background: var(--clay); padding: 0 4px; border-radius: 999px; line-height: 1.5;
}

.list-day { align-items: center; gap: 10px; }
.list-day .dchip {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem;
  background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.list-day.is-today .dchip { background: var(--ink); color: var(--bg); border-color: transparent; }
.list-day .g { display: grid; }
.list-day.is-past { opacity: .6; }
.list-count { color: var(--ink-3); font-size: .8125rem; margin: 6px 0 4px; }

/* ================================ צ'יפים ================================ */
.chip .cnt {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
}
.chip[data-t][aria-pressed="true"] { background: var(--tc); color: #fff; border-color: transparent; }
.chip[data-t][aria-pressed="true"] .dot { background: #fff !important; }
.chip[data-t][aria-pressed="true"] .cnt { background: rgba(255,255,255,.25); color: #fff; }
.filter-note {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 12px;
  padding: 9px 12px; border-radius: var(--r-m); background: var(--surface-2);
  font-size: .8125rem; color: var(--ink-2);
}
.filter-note b { color: var(--ink); }
.filter-note button { margin-inline-start: auto; color: var(--clay); font-weight: 700; font-size: .8125rem; }

/* ================================ דשבורד ================================ */
.dash { display: grid; gap: 12px; }
.dash-hero {
  background: var(--ink); color: var(--bg); border-radius: var(--r-xl);
  padding: 18px 18px 14px; box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ''; position: absolute; inset-inline-end: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: var(--clay); opacity: .22; pointer-events: none;
}
.dh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
.dh-date { display: flex; align-items: center; gap: 12px; }
.dash-hero .dh-num {
  font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.dash-hero .dh-wd { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.dash-hero .dh-md { opacity: .6; font-size: .875rem; font-weight: 300; }
.dh-stats { display: flex; gap: 6px; margin-top: 16px; position: relative; }
.dh-stats .stat {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 12px; padding: 9px 6px 7px;
  display: grid; justify-items: center;
}
.dh-stats .stat b { font-size: 1.5rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dh-stats .stat span { font-size: .6875rem; opacity: .7; }
.dh-stats .stat.warn b { color: #F3A48A; }
.dh-stats .stat.good b { color: #9BD8A8; }
.dh-next {
  margin-top: 12px; width: 100%; text-align: start; position: relative;
  display: flex; align-items: center; gap: 9px;
  background: var(--clay); color: #fff; border-radius: 14px; padding: 11px 13px;
  font-weight: 500; font-size: .9375rem;
  transition: transform 120ms cubic-bezier(.2,.7,.3,1);
}
.dh-next:active { transform: scale(.98); }
.dh-next svg { width: 18px; height: 18px; }
.dh-next span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-next b { font-weight: 900; }
.dh-next.done { background: rgba(255,255,255,.1); color: var(--bg); }
.dh-next.quiet { background: rgba(255,255,255,.06); color: var(--bg); opacity: .8; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 430px) { .dash-grid { grid-template-columns: 1fr; } }
.dcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 14px 14px 12px; box-shadow: var(--shadow-1); min-width: 0;
}
.dcard.late { border-color: var(--clay-line); background: linear-gradient(180deg, var(--clay-soft), transparent 60%), var(--surface); }
.dcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dcard-h h3 { font-size: .9375rem; }
.dcard-h .small { color: var(--ink-3); }
.muted { color: var(--ink-3); }

.ring-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ring { width: 68px; height: 68px; flex: 0 0 auto; }
.ring .track { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.ring .val {
  fill: none; stroke: var(--clay); stroke-width: 7; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dasharray 600ms cubic-bezier(.2,.8,.3,1);
}
.ring-big { font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.typebars { display: grid; gap: 7px; }
.tb { display: grid; grid-template-columns: 62px 1fr 42px; align-items: center; gap: 8px; font-size: .8125rem; }
.tb-l { display: flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.tb-l i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.tb-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.tb-plan { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; opacity: .28; }
.tb-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; transition: width 600ms cubic-bezier(.2,.8,.3,1); }
.tb-n { text-align: end; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.weekbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wb { display: grid; justify-items: center; gap: 4px; padding: 4px 0 2px; border-radius: 10px; }
.wb:active { background: var(--surface-2); }
.wb-col { height: 64px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wb-total { width: 14px; border-radius: 5px 5px 4px 4px; background: var(--surface-2); position: relative; min-height: 4px; overflow: hidden; }
.wb-done { position: absolute; inset-inline: 0; bottom: 0; background: var(--ink); border-radius: 4px; }
.wb.is-today .wb-total { outline: 2px solid var(--clay); outline-offset: 1px; }
.wb-n { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 1em; color: var(--ink-2); }
.wb-l { font-size: .6875rem; color: var(--ink-3); }
.wb.is-today .wb-l { color: var(--clay); font-weight: 700; }

.drow { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.drow:first-of-type { border-top: 0; }
.drow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; text-align: start; padding: 9px 0; }
.drow-time { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 42px; }
.drow-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 500; }
.drow.done .drow-t { color: var(--ink-3); text-decoration: line-through; font-weight: 400; }
.drow-check {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--ink-3);
  transition: transform 110ms cubic-bezier(.2,.7,.3,1), background-color 150ms ease, color 150ms ease;
}
.drow-check:active { transform: scale(.88); }
.drow-check svg { width: 16px; height: 16px; }
.drow.done .drow-check { background: var(--good); border-color: transparent; color: #fff; }

.gapchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-foot { text-align: center; color: var(--ink-3); padding: 4px 0 8px; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--clay); }

/* ============================== התראות ============================== */
.push-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.push-status .led { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
.push-status .led.on { background: var(--good); box-shadow: 0 0 0 4px rgba(78,124,90,.18); }
.push-status .led.warn { background: var(--clay); }
