/* ============================================================
   dashboard.css — Today page row cards (js/dashboard.js)
   Uses the app tokens from styles.css (--bg, --surface, --accent…).
   ============================================================ */

/* Today is a normal scrolling page now (the old brief locked it to one
   viewport) and gets a wider column than the other views. */
@media (min-width: 641px) {
  body.is-today .shell { height: auto; overflow: visible; }
  body.is-today .content { display: block; overflow: visible; }
  body.is-today .content__col { display: block; overflow: visible; max-width: 1240px; padding: 26px 20px 64px; }
  body.is-today #view-today.is-active { display: block; }
  body.is-today #view-today .sub-panel.is-active { display: block; padding-top: 0; }
}

.dash { display: flex; flex-direction: column; gap: 16px; }
.dash * { box-sizing: border-box; }
.dash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dash .dash-card {
  position: relative;
  margin: 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.dash-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.dash-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-mid);
}
.dash-label svg { flex: none; }
.dash-label--muted { color: var(--muted); }
.dash-label--green { color: #2c6342; }
.dash-cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dash-cardhead .dash-label { margin: 0; flex: 0 1 auto; }
.dash-cardhead--wrap { flex-wrap: wrap; gap: 8px 14px; }
.dash-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--accent-strong); }
.dash-count {
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: #efebe3; color: var(--muted); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.dash-cardhead:not(.dash-cardhead--wrap) .dash-count { margin-left: auto; }
.dash-countdown { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-spacer { flex: 1; }
.dash-hint { font-size: 12px; color: #857e72; }
.dash-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--accent-mid); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.dbtn {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.dbtn:hover { border-color: var(--accent); color: var(--accent-text); }
.dbtn.is-on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.dicon {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.dicon:hover { border-color: var(--accent); color: var(--accent-text); }
.dash button:focus-visible, .dash-field:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 1. greeting row ---------- */
.dash .dash-hero { overflow: hidden; padding: 26px 30px; }
.dash-hero::before, .dash-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dash-hero::before { right: -90px; top: -110px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(217,118,90,.10), rgba(217,118,90,0) 70%); }
.dash-hero::after { left: -80px; bottom: -140px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(120,140,190,.08), rgba(120,140,190,0) 70%); }
.dash-hero__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; }
.dash-hero__hello { flex: 1 1 300px; min-width: 0; }
.dash-hero__greet { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
.dash-hero__name { color: var(--accent-strong); }
.dash-hero__date { margin-top: 6px; font-size: 16px; font-weight: 600; }
.dash-hero__wd { color: var(--accent-mid); }
.dash-hero__clock { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.dash-hero__clock > span:first-child { font-size: 40px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.dash-hero__ampm { font-size: 20px; font-weight: 600; }
.dash-hero__tz { margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); align-self: center; }
.dash-hero__vr { width: 1px; align-self: stretch; background: var(--border); }
.dash-hero__wx {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; background: none; padding: 4px; margin: -4px; border-radius: 10px; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.dash-hero__wx:hover { background: var(--bg); }
.dash-hero__wx .dash-label { margin: 0; }
.dash-hero__wxrow { display: flex; align-items: center; gap: 10px; }
.dash-hero__temp { font-size: 36px; font-weight: 700; line-height: 1; }
.dash-hero__wxic { width: 26px; height: 26px; color: var(--accent); display: grid; }
.dash-hero__wxic svg { width: 26px; height: 26px; }
.dash-hero__cond { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- 2. news row (matches the Home Dashboard design) ---------- */
.dash-grid3 > .dash-card { gap: 4px; }
.dash-news { display: flex; flex-direction: column; flex: 1; }
.dash-news__foot { margin-top: auto; padding-top: 8px; }
.dmkt {
  display: grid; grid-template-columns: 1fr auto minmax(78px, auto); align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid #efeae1; font-variant-numeric: tabular-nums;
}
.dmkt__n { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.dmkt__tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #2c6342; background: #e9f2eb; border-radius: 999px; padding: 1px 6px; }
.dmkt__p { font-weight: 700; }
.dmkt__c { text-align: right; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dash .up, .dmkt__c.up { color: #2f6a46; }
.dash .down, .dmkt__c.down { color: #a8402f; }
.dnews { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px solid #efeae1; }
.dnews:last-child { border-bottom: 0; }
.dnews--lead { padding-top: 0; padding-bottom: 2px; border-bottom: 0; }
.dnews__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dnews__t { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); text-decoration: none; }
a.dnews__t:hover { color: var(--accent-text); text-decoration: underline; }
.dnews__m { font-size: 12.5px; color: var(--muted); }
.dnews__m b { color: var(--accent-mid); font-weight: 700; }
.dnow {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #2c6342; background: #e9f2eb; border-radius: 999px; padding: 1px 7px;
}
/* Politics: election countdown on top, headlines below a divider like the design's note */
#dashElection:not(:empty) + .dash-news--pol { margin-top: 4px; padding-top: 4px; border-top: 1px solid #efeae1; }
.dash-news--pol .dnews__t { font-size: 13px; font-weight: 500; line-height: 1.5; }

/* ---------- 3. habits + meals (markup from habits.js) ---------- */
.dash-habits .hb-sublabel { display: none; }

/* ---------- 4. plan mode ---------- */
.dash-plan {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 18px; background: #f8ece6; border: 1px solid #efd2c6;
}
.dash-plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dash-plan__head .dash-label { margin: 0; }
.dash-plan__help { flex: 1; min-width: 220px; font-size: 14px; color: var(--muted); }
.dash-tray {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px;
  min-height: 110px; padding: 10px; border: 1.5px dashed #e2dbcf; border-radius: 10px;
}
.dash-add { display: flex; gap: 8px; margin-top: 6px; }
.dash-field {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); font: inherit; font-size: 14px; color: var(--text);
}

/* ---------- chips ---------- */
.dchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 6px 5px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.3;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.dchip:active { cursor: grabbing; }
.dchip svg { flex: none; }
.dchip--goal { background: var(--accent-soft); border-color: #efd2c6; color: var(--accent-text); }
.dchip--bday { background: #f3edf8; border-color: #e2d5ee; color: #5e3784; cursor: default; padding-right: 10px; }
.dchip--bill { background: #fbefec; border-color: #f0d6d0; color: #93372c; cursor: default; padding-right: 10px; }
.dchip.is-done .dchip__text { text-decoration: line-through; opacity: .7; }
.dchip--sm { width: 100%; font-size: 11.5px; padding: 2px 3px 2px 7px; gap: 4px; border-radius: 6px; }
.dchip--sm.dchip--bday, .dchip--sm.dchip--bill { padding-right: 7px; }
.dchip__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchip__time { font-size: 11px; font-weight: 700; color: var(--accent-mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dchip--bday .dchip__time, .dchip--bill .dchip__time { color: inherit; }
.dchip__cat { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.dchip__grip { width: 8px; height: 12px; flex: none; background: radial-gradient(circle, #b3aca0 1.2px, transparent 1.4px) 0 0 / 4px 4px; }
.dchip__x {
  flex: none; width: 22px; height: 22px; border: 0; background: none; color: inherit; opacity: .55;
  display: grid; place-items: center; border-radius: 5px; cursor: pointer; padding: 0;
}
.dchip--sm .dchip__x { width: 18px; height: 18px; }
.dchip__x:hover { opacity: 1; background: rgba(0,0,0,.05); }

/* drop targets */
.dzone { transition: background .15s, box-shadow .15s; }
.dzone.is-over { background: var(--accent-soft) !important; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- 5. today ---------- */
.dash-today { display: flex; flex-wrap: wrap; gap: 20px; }
.dash-today__main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-today__hours { min-width: 0; border-top: 1px solid #efeae1; }
.dash-add--sched { margin-top: 0; flex-wrap: wrap; }
.dash-add--sched .dash-field { flex: 1 1 200px; }
.dash-select {
  flex: none; height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23857e72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.dash-select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.dbtn--accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.dbtn--accent:hover { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.dash-today__any .dash-add { margin-top: 10px; }
.dhour__add {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; opacity: .55;
  transition: opacity .15s, background .15s, color .15s;
}
.dhour:hover .dhour__add, .dhour__add:focus-visible { opacity: 1; }
.dhour__add:hover { background: var(--accent-soft); border-color: #efd2c6; color: var(--accent-text); }
.dhour.is-picked { background: var(--accent-soft); }
.dhour.is-picked .dhour__t { color: var(--accent-mid); }
@media (hover: none) { .dhour__add { opacity: 1; } }
.dash-today__any { flex: 1 1 240px; display: flex; flex-direction: column; }
.dhour { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 5px 10px; border-bottom: 1px solid #efeae1; border-radius: 8px; }
.dhour__t { flex: none; width: 58px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dhour.is-now .dhour__t { color: var(--accent-mid); }
.dhour.is-past .dhour__t { color: #a39c90; }
.dhour__items { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 6. week ---------- */
.dash-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.dash-week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 10px; min-width: 860px; }
.dwcol {
  display: flex; flex-direction: column; gap: 6px; min-height: 200px; padding: 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0;
}
.dwcol.is-today { border-color: var(--accent); }
.dwcol__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.dwcol__empty { margin-top: auto; text-align: center; padding-bottom: 6px; }
.dpill {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  font-size: 15px; font-weight: 700; color: var(--text);
}
.dpill small { font-size: 9.5px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.dpill.is-today { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.dpill.is-today small { color: #fff; }

/* ---------- 7. month ---------- */
.dash-month { min-width: 760px; display: flex; flex-direction: column; gap: 6px; }
.dash-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dash-dow { justify-content: center; margin: 0; }
.dmcell {
  display: flex; flex-direction: column; gap: 4px; min-height: 104px; min-width: 0; padding: 6px;
  border: 1px solid #ece7de; border-radius: 10px; background: var(--surface);
}
.dmcell.is-out { background: var(--bg); }
.dmcell.is-out .dmnum { color: #a39c90; }
.dmcell.is-hol { background: #fbfdfb; }
.dmnum {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
}
.dmcell.is-today .dmnum { background: var(--accent-strong); color: #fff; }
.dmore { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.dhol {
  display: flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 7px; border-radius: 6px;
  background: #e9f2eb; color: #2c6342; font-size: 11px; font-weight: 700; line-height: 1.35;
}
.dhol svg { flex: none; }
.dhol span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 14px; }
.dash-upcoming .dash-label { margin: 0 4px 0 0; }
.dup {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid #d7e7db; background: #f3f8f4; font-size: 14px; color: var(--text); white-space: nowrap;
}
.dup__date { font-weight: 700; color: #2c6342; font-variant-numeric: tabular-nums; }
.dup__in { font-size: 12px; color: var(--muted); }

/* narrow side panel */
@media (max-width: 640px) {
  .dash .dash-card { padding: 16px; }
  .dash .dash-hero { padding: 20px; }
  .dash-hero__greet { font-size: 23px; }
  .dash-hero__clock > span:first-child { font-size: 32px; }
  .dash-hero__vr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dzone, .dbtn { transition: none; }
}

/* two-week card: this week + next week */
.dash-weekrow { display: flex; flex-direction: column; gap: 8px; }
.dash-weekrow + .dash-weekrow { margin-top: 14px; padding-top: 14px; border-top: 1px solid #efeae1; }
.dash-weekrow__head { display: flex; align-items: baseline; gap: 10px; }
.dash-weekrow__head .dash-label { margin: 0; }
.dwcol.is-past:not(.is-today) { background: var(--bg); }
.dwcol.is-past:not(.is-today) .dpill { color: #a39c90; }
.dash-weekrow .dwcol { min-height: 170px; }

/* Plan Mode trays: one item per row, exactly 6 rows tall, scroll for the rest */
.dash-plan .dash-tray {
  --row: 34px;
  --gap: 6px;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--gap);
  min-height: 0;
  height: calc(6 * var(--row) + 5 * var(--gap) + 20px + 3px);   /* 6 rows + padding + dashed border */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dash-plan .dash-tray > .dchip {
  flex: none;
  width: 100%;
  height: var(--row);
  padding-top: 0;
  padding-bottom: 0;
}
.dash-plan .dash-tray > .dash-hint { padding: 4px 2px; }

/* ---------- archive + task menu (ported from the original Today schedule) ---------- */
.dash-archlink {
  border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.dash-archlink:hover { color: var(--accent-strong); }
.dash-archlink .dash-count { min-width: 22px; height: 20px; font-size: 11px; }
.darch-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.darch {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.darch__text { flex: 1; min-width: 0; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.darch__when { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.darch__btn {
  flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--muted);
  display: grid; place-items: center; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; padding: 0;
}
.darch__btn:hover { color: var(--accent-strong); background: var(--bg); }
.darch__btn--del:hover { color: var(--neg); }
.dchip__more { font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.dchip__edit {
  flex: 1; min-width: 60px; border: 0; background: none; outline: none; padding: 0; margin: 0;
  font: inherit; color: var(--text);
}
.dpop {
  position: fixed; z-index: 60; min-width: 140px; padding: 5px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 18, 15, .18); display: flex; flex-direction: column; gap: 1px;
}
.dpop[hidden] { display: none; }
.dpop__item {
  border: 0; background: none; font: inherit; font-size: 14px; color: var(--text);
  text-align: left; padding: 7px 10px; border-radius: 7px; cursor: pointer;
}
.dpop__item:hover, .dpop__item:focus-visible { background: var(--bg); outline: none; }
.dpop__item.is-danger { color: var(--neg); }

/* ---------- Plan Mode: priority markers on chips ---------- */
.dprio { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dprio--high { background: #c2412d; }
.dprio--medium { background: #d9932b; }
.dprio--low { background: #6f9a7d; }
.dchip__due { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-plan .dchip { cursor: pointer; }
.dash-plan .dchip:active { cursor: grabbing; }
.dash-plan .dchip.is-selected { border-color: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent-soft); }
.dash-plan .dchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Plan Mode: detail card (under To-dos and Goals) ---------- */
#dashPlanDetail:empty { display: none; }
.dash-plan .ddet { gap: 10px; }
.ddet__head { display: flex; align-items: center; gap: 8px; }
.ddet__head .dash-label { margin: 0; }
.ddet__cat { color: var(--muted); }
.ddet__close { width: 32px; height: 32px; }
.ddet__name {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--border); background: none; padding: 4px 0 8px;
  font: inherit; font-size: 20px; font-weight: 700; color: var(--text); outline: none;
}
.ddet__name:focus { border-bottom-color: var(--accent); }
.ddet__lab { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ddet__notes { width: 100%; height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.ddet__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ddet__f { display: flex; flex-direction: column; min-width: 0; }
.ddet__f .dash-field, .ddet__f .dash-select { width: 100%; flex: none; }
.ddet__why { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.ddet__sched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.ddet__sched svg { color: var(--accent-mid); }
.ddet__sched--none { color: var(--muted); }
.ddet__stepshead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid #efeae1; }
.ddet__stepshead .dash-label { margin: 0; display: flex; align-items: center; gap: 8px; }
.ddet__total { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ddet__msg { margin: 0; font-size: 13px; color: var(--accent-text); }
.dbtn[disabled] { opacity: .65; cursor: progress; }
.ddet__steps { display: flex; flex-direction: column; gap: 6px; }
.ddet-step {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 72px 136px 28px; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.ddet-step input {
  min-width: 0; height: 30px; border: 1px solid transparent; border-radius: 6px; background: none;
  font: inherit; font-size: 14px; color: var(--text); padding: 0 6px;
}
.ddet-step input:hover { border-color: var(--border); }
.ddet-step input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.ddet-step .ddet-step__dur, .ddet-step .ddet-step__due { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ddet-step__chk {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); background: none;
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.ddet-step.is-done .ddet-step__chk { background: var(--accent); }
.ddet-step.is-done .ddet-step__text { text-decoration: line-through; color: var(--muted); }
.ddet-step__del { width: 26px; height: 26px; border: 0; background: none; color: var(--muted); border-radius: 6px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ddet-step__del:hover { color: var(--neg); background: var(--bg); }
.ddet__addstep { margin-top: 2px; }
.ddet__foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #efeae1; }
.ddet__del { color: var(--neg); }
@media (max-width: 640px) {
  .ddet-step { grid-template-columns: 24px minmax(0, 1fr) 28px; }
  .ddet-step .ddet-step__dur, .ddet-step .ddet-step__due { grid-column: 2; }
}

/* Today greeting: one-tap voice mode */
.dash-hero__talk { position: relative; flex: none; height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 640px) { .dash-hero__talk { width: 100%; justify-content: center; } }
