:root{
  --bg: oklch(0.974 0.010 300);
  --surface: oklch(1 0 0);
  --surface2: oklch(0.963 0.014 300);
  --surface3: oklch(0.935 0.018 300);
  --fg: oklch(0.205 0.032 293);
  --fg2: oklch(0.360 0.030 293);
  --muted: oklch(0.535 0.028 293);
  --border: oklch(0.905 0.016 300);
  --border2: oklch(0.845 0.020 300);

  --violet: oklch(0.545 0.208 293);
  --violet-d: oklch(0.440 0.190 293);
  --violet-tint: oklch(0.545 0.208 293 / .13);
  --lime: oklch(0.815 0.172 133);
  --lime-d: oklch(0.600 0.155 138);
  --lime-tint: oklch(0.815 0.172 133 / .26);
  --orange: oklch(0.720 0.188 52);
  --orange-d: oklch(0.610 0.190 45);
  --orange-tint: oklch(0.720 0.188 52 / .16);

  --patrick: var(--violet);
  --patrick-ink: oklch(1 0 0);
  --daina: var(--lime);
  --daina-ink: oklch(0.245 0.062 142);
  --daina-strong: oklch(0.500 0.140 140);

  --ok: oklch(0.600 0.155 140);
  --part: oklch(0.720 0.170 70);
  --todo: oklch(0.700 0.018 293);
  --late: oklch(0.575 0.190 20);
  --late-tint: oklch(0.575 0.190 20 / .14);

  --r-sm: 14px; --r: 20px; --r-lg: 26px; --r-xl: 34px;
  --shadow: 0 10px 26px oklch(0.30 0.05 293 / .10);
  --shadow-sm: 0 4px 12px oklch(0.30 0.05 293 / .08);
  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(90% 55% at 50% 0%, oklch(0.315 0.070 293), oklch(0.175 0.030 293) 70%),
    oklch(0.155 0.025 293);
  -webkit-font-smoothing: antialiased;
}
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible{ outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.ontint :focus-visible, .selector :focus-visible{ outline-color: oklch(1 0 0); }
input, textarea{ font: inherit; color: inherit; }

.phone{
  position: relative;
  width: 390px; height: 844px; max-height: 100dvh;
  background: linear-gradient(180deg, oklch(0.985 0.014 300), var(--bg) 34%, oklch(0.965 0.022 133 / .5));
  border: 1px solid oklch(0.42 0.06 293);
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 34px 90px oklch(0.10 0.03 293 / .6), 0 0 0 1px oklch(1 0 0 / .05);
  isolation: isolate;
}
.app{ position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ---------- top bar ---------- */
.topbar{
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 10px;
  min-height: 62px;
}
.user-chip{
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; min-height: 48px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.user-chip:active{ transform: scale(.97); }
.user-chip .who{ display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.user-chip .who b{ font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.user-chip .who span{ font-size: 11px; color: var(--muted); }
.swap{
  margin-left: auto; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border2);
  color: var(--fg2); font-size: 13px; font-weight: 650;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s ease, border-color .15s ease;
}
.swap:hover{ background: var(--surface2); border-color: var(--muted); color: var(--fg); }
.swap .sw-ico{ width:14px;height:14px;position:relative;color:currentColor }
.swap .sw-ico::before,.swap .sw-ico::after{ content:"";position:absolute;left:0;width:14px;height:5px;border:2px solid currentColor;border-radius:3px }
.swap .sw-ico::before{ top:0; border-bottom:0; border-radius:6px 6px 0 0 }
.swap .sw-ico::after{ bottom:0; border-top:0; border-radius:0 0 6px 6px }

.avatar{
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px; flex: none;
  background: linear-gradient(150deg, var(--violet), var(--violet-d));
  box-shadow: inset 0 0 0 2px oklch(1 0 0 / .55);
}
.avatar[data-who="daina"]{ background: linear-gradient(150deg, oklch(0.86 0.17 130), oklch(0.74 0.17 138)); }
.avatar.lg{ width: 66px; height: 66px; font-size: 34px; box-shadow: inset 0 0 0 3px oklch(1 0 0 / .6); }
.person-card .avatar.lg{ width: 58px; height: 58px; font-size: 30px; background: oklch(1 0 0 / .24); box-shadow: inset 0 0 0 2px oklch(1 0 0 / .55); }
.person-card.daina .avatar.lg{ background: oklch(1 0 0 / .5); }

/* ---------- screens ---------- */
.screens{ position: relative; flex: 1; min-height: 0; }
.screen{
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 4px 18px 30px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar{ display:none }
.screen.active{ opacity: 1; visibility: visible; transform: none; }

.eyebrow{
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 8px;
}
/* M1: chip de contexto do quadro compartilha a linha do título da lista */
.board-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-head .chip{ margin-top: 0; flex: none; }
/* M1: blocos do quadro de hoje — rótulo na pausa dos grupos, cartões colados no bloco */
.blk-head{
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 18px 4px 0;
}
.blk-head::after{ content:""; display:block; width: 26px; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--violet-tint); }
.blk .task:first-of-type{ margin-top: 8px; }

/* escrita no mobile: form de 1 linha do quadro de hoje */
.add-task{ display: flex; gap: 8px; margin-top: 18px; }
.add-task input{
  min-height: 48px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-sm); padding: 0 14px; font-size: 14px;
}
.add-task input:focus-visible{ outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.add-task .t-txt{ flex: 1; min-width: 0; }
.add-task .t-min{ width: 68px; padding: 0 6px; text-align: center; font-weight: 700; }
.add-task button{
  flex: none; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--violet); color: oklch(1 0 0);
  display: grid; place-items: center;
  transition: background .15s ease, transform .12s ease;
}
.add-task button:hover{ background: var(--violet-d); }
.add-task button:active{ transform: scale(.94); }
.plus{ position: relative; width: 16px; height: 16px; }
.plus::before, .plus::after{ content:""; position: absolute; background: currentColor; border-radius: 2px; }
.plus::before{ left: 50%; top: 0; width: 2.5px; height: 100%; margin-left: -1.25px; }
.plus::after{ top: 50%; left: 0; width: 100%; height: 2.5px; margin-top: -1.25px; }

/* remover tarefa: ação destrutiva no corpo aberto do cartão — contorno de perigo, sem fundo chapado */
.btn-del{
  min-height: 44px; padding: 0 16px; margin-top: 12px; width: 100%;
  border-radius: 999px; border: 1px solid var(--late);
  color: var(--late); font-weight: 750; font-size: 13.5px;
  background: transparent;
  transition: background .15s ease, transform .12s ease;
}
.btn-del:hover{ background: var(--late-tint); }
.btn-del:active{ transform: scale(.98); }

/* nota do dia: rodapé do quadro de hoje, mesma linguagem da nota de tarefa */
.daynote{ margin-top: 16px; }
.daynote-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.daynote label{ font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.note-status{ font-size: 11.5px; color: var(--muted); font-weight: 650; }
.daynote textarea{
  width: 100%; min-height: 76px; resize: vertical;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.daynote textarea::placeholder{ color: var(--muted); }
h2.screen-title{
  font-family: var(--font-display); font-size: 27px; font-weight: 800;
  letter-spacing: -.02em; margin: 6px 0 14px;
}

/* ---------- hero (Hoje) ---------- */
.hero{
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 18px;
  color: oklch(1 0 0);
  background: linear-gradient(140deg, oklch(0.470 0.150 293), oklch(0.545 0.208 293) 62%, oklch(0.500 0.170 285));
  box-shadow: 0 16px 34px oklch(0.44 0.19 293 / .34);
}
.hero::after{
  content:""; position:absolute; width: 190px; height: 190px; right: -62px; top: -84px;
  border-radius: 50%; background: radial-gradient(circle, oklch(0.85 0.18 133 / .5), transparent 68%);
}
.hero-top{ position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.streak{ display: flex; align-items: center; gap: 12px; }
.streak-num{ display: flex; flex-direction: column; line-height: .92; }
.streak-num b{ font-family: var(--font-display); font-size: 54px; font-weight: 800; letter-spacing: -.04em; }
.streak-num span{ font-size: 12px; font-weight: 650; color: oklch(1 0 0 / .82); max-width: 96px; line-height: 1.15; }
.dayring{ position: relative; width: 82px; height: 82px; flex: none; }
.ring{
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--lime) 0 calc(var(--p) * 1%), oklch(1 0 0 / .22) calc(var(--p) * 1%) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
}
.ring-txt{ position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-txt b{ font-family: var(--font-display); font-size: 25px; font-weight: 800; }
.ring-txt span{ font-size: 10px; font-weight: 700; color: oklch(1 0 0 / .78); }
.hero-day{ position: relative; margin-top: 16px; }
.hero-day .hd-row{ display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; }
.hero-day .hd-row span{ color: oklch(1 0 0 / .82); font-weight: 600; }
.hero-day .hd-row b{ font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.daybar{ margin-top: 8px; height: 9px; border-radius: 999px; background: oklch(1 0 0 / .22); overflow: hidden; }
.daybar i{ display: block; height: 100%; width: 66%; border-radius: 999px; background: var(--lime); transition: width .35s ease; }

/* ---------- tasks ---------- */
.task{
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); margin-top: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.task-head{ display: flex; align-items: flex-start; gap: 4px; padding: 10px 12px 10px 6px; }
.cb{ position: relative; flex: none; width: 50px; min-height: 52px; display: grid; place-items: center; cursor: pointer; }
.cb input{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.box{
  width: 27px; height: 27px; border-radius: 10px;
  border: 2.5px solid var(--border2); background: var(--surface);
  display: grid; place-items: center; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.box::after{
  content:""; width: 12px; height: 6px; margin-top: -3px;
  border-left: 3px solid oklch(1 0 0); border-bottom: 3px solid oklch(1 0 0);
  transform: rotate(-45deg) scale(.5); opacity: 0; transition: transform .18s ease, opacity .18s ease;
}
.cb input:checked + .box{ background: var(--ok); border-color: var(--ok); }
.cb input:checked + .box::after{ opacity: 1; transform: rotate(-45deg) scale(1); }
.cb input:focus-visible + .box{ outline: 3px solid var(--violet); outline-offset: 3px; }
.cb input:active + .box{ transform: scale(.9); }
.task-toggle{
  text-align: left; flex: 1; min-height: 52px; padding: 4px 4px 4px 0;
  display: flex; flex-direction: column; gap: 6px; border-radius: 12px;
}
.task-toggle:focus-visible{ outline-offset: -2px; }
.t-title{ font-family: var(--font-display); font-size: 16.5px; font-weight: 750; line-height: 1.22; letter-spacing: -.01em; }
.t-meta{ display: flex; align-items: center; gap: 6px; }
.pin{
  font-size: 11px; font-weight: 750; padding: 3px 9px; border-radius: 999px;
  background: var(--violet-tint); color: var(--violet-d);
}
.pin.consumo{ background: var(--lime-tint); color: var(--daina-strong); }
.pin.revisao{ background: var(--orange-tint); color: oklch(0.520 0.170 45); }
.t-num{ font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chev{ flex: none; width: 34px; height: 52px; position: relative; color: var(--muted); transition: transform .25s ease; }
.chev::before{
  content:""; position:absolute; left:50%; top:50%; width:9px; height:9px; margin:-6px 0 0 -6px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  border-radius: 2px; transform: rotate(45deg);
}
.task.open .chev{ transform: rotate(180deg); }
.task.done .t-title{ color: var(--muted); }

.task-body{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.task.open .task-body{ grid-template-rows: 1fr; }
.task-body > .tb-inner{ overflow: hidden; }
.tb-pad{ padding: 0 14px 14px; }
.how{ background: var(--surface2); border-radius: var(--r-sm); padding: 12px 13px; }
.how h4{ margin: 0 0 5px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.how p{ margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg2); }

.rec-row{ display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-rec{
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border2);
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px; color: var(--fg);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.btn-rec:hover{ background: var(--surface3); border-color: var(--muted); }
.btn-rec:active{ transform: scale(.97); }
.rec-dot{ width: 12px; height: 12px; border-radius: 50%; background: var(--late); flex: none; }
.btn-rec.active{ background: var(--late); border-color: var(--late); color: oklch(1 0 0); }
.btn-rec.active .rec-dot{ background: oklch(1 0 0); animation: pulse 1s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.28 } }
.rec-hint{ font-size: 12px; color: var(--muted); }

.recs{ margin-top: 14px; }
.recs h4{ margin: 0 0 8px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.rec{
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm); background: var(--surface2); margin-bottom: 8px;
}
.play{
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--violet); color: oklch(1 0 0);
  display: grid; place-items: center;
  transition: background .15s ease, transform .12s ease;
}
.play:hover{ background: var(--violet-d); }
.play:active{ transform: scale(.93); }
.play i{ width:0;height:0;border-left:11px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px; }
.play.playing i{ width:10px;height:12px;border:0;margin:0;background:currentColor;border-radius:2px;box-shadow:6px 0 0 currentColor; }
.track{ flex: 1; height: 7px; border-radius: 999px; background: var(--surface3); overflow: hidden; min-width: 40px; }
.track i{ display: block; height: 100%; border-radius: 999px; background: var(--violet); }
.rec-meta{ font-family: var(--font-mono); font-size: 11.5px; color: var(--fg2); white-space: nowrap; }

.note{ margin-top: 14px; }
.note label{ display:block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.note textarea{
  width: 100%; min-height: 62px; resize: vertical;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; line-height: 1.45;
}
.note textarea::placeholder{ color: var(--muted); }

.btn-ghost{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; margin-top: 16px;
  border-radius: var(--r); border: 1.5px dashed var(--border2);
  background: oklch(1 0 0 / .6); color: var(--violet-d);
  font-weight: 750; font-size: 14.5px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-ghost:hover{ background: var(--violet-tint); border-color: var(--violet); }
.down-ico{ width: 16px; height: 16px; position: relative; }
.down-ico::before{ content:""; position:absolute; left:50%; top:0; width:2.5px; height:11px; margin-left:-1.25px; background:currentColor; border-radius:2px; }
.down-ico::after{ content:""; position:absolute; left:50%; bottom:1px; width:9px; height:9px; margin-left:-4.5px; border-right:2.5px solid currentColor; border-bottom:2.5px solid currentColor; transform:rotate(45deg); border-radius:2px; }

/* ---------- calendar ---------- */
.cal-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 14px; box-shadow: var(--shadow-sm); }
.cal-head{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.cal-head b{ font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.cal-head span{ font-size: 12px; color: var(--muted); font-weight: 650; }
.dows{ display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 6px; }
.dows span{ text-align: center; font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.cal-grid{ display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-cell{
  position: relative; aspect-ratio: 1 / 1.08; min-height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--fg2);
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.cal-cell:hover{ background: var(--surface2); }
.cal-cell:active{ transform: scale(.93); }
.cal-cell .dot{ position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; opacity: .0; }
.cal-cell[data-s="concluido"]{ background: var(--lime-tint); color: oklch(0.330 0.100 140); }
.cal-cell[data-s="parcial"]{ background: var(--orange-tint); color: oklch(0.470 0.150 48); }
.cal-cell[data-s="atrasado"]{ background: var(--late-tint); color: oklch(0.460 0.170 22); }
.cal-cell[data-s="afazer"]{ color: var(--muted); }
.cal-cell[data-s] .dot{ opacity: .85; }
.cal-cell.out{ opacity: .42; }
.cal-cell.today{ border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); font-weight: 850; }
.cal-cell.selected{ border-color: var(--fg); border-width: 2px; }

.legend{ display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.legend span{ display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg2); font-weight: 600; }
.legend i{ width: 10px; height: 10px; border-radius: 4px; flex: none; }
.legend .l-ok{ background: var(--ok); } .legend .l-part{ background: var(--part); }
.legend .l-todo{ background: var(--todo); } .legend .l-late{ background: var(--late); }
.legend .l-today{ background: var(--violet); border-radius: 50%; }

.week-strip{ display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-top: 4px; }
.wday{
  border-radius: 14px; padding: 9px 0 8px; text-align: center;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wday span{ font-size: 10px; font-weight: 800; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.wday b{ font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.wday i{ width: 6px; height: 6px; border-radius: 50%; background: var(--todo); }
.wday[data-s="concluido"] i{ background: var(--ok); }
.wday[data-s="parcial"] i{ background: var(--part); }
.wday[data-s="atrasado"] i{ background: var(--late); }
.wday.today{ border-color: var(--violet); border-width: 2px; background: var(--violet-tint); }

.day-summary{ margin-top: 14px; }
.ds-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.ds-top{ display: flex; align-items: flex-start; gap: 12px; }
.ds-day{
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-content: center; text-align: center;
  background: linear-gradient(150deg, var(--violet), var(--violet-d)); color: oklch(1 0 0); line-height: 1;
}
.ds-day b{ font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.ds-day span{ font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.ds-info h3{ margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.2; }
.ds-info p{ margin: 0; font-size: 12.5px; color: var(--muted); }
.chip{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
}
.chip.ok{ background: var(--lime-tint); color: oklch(0.330 0.100 140); }
.chip.part{ background: var(--orange-tint); color: oklch(0.470 0.150 48); }
.chip.todo{ background: var(--surface3); color: var(--fg2); }
.chip.late{ background: var(--late-tint); color: oklch(0.460 0.170 22); }
.ds-tasks{ margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ds-task{ display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg2); }
.ds-task i{ width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--todo); }
.ds-task[data-d="1"]{ color: var(--muted); }
/* o risco fica no RÓTULO: no <div> inteiro ele atravessa os chips da mesma linha (setup, tarefa do dia N) */
.ds-task[data-d="1"] .ds-tlabel{ text-decoration: line-through; text-decoration-color: var(--muted); }
.ds-task[data-d="1"] i{ background: var(--ok); }

/* ---------- notas (aba agregada) ---------- */
.ngroup{ margin-top: 14px; }
.ngroup-head{
  width: 100%; display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 10px 14px 10px 10px; box-shadow: var(--shadow-sm);
}
.ng-day{
  flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-content: center;
  text-align: center; line-height: 1; color: oklch(1 0 0);
  background: linear-gradient(150deg, var(--violet), var(--violet-d));
}
.ng-day b{ font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.ng-day span{ font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.ng-date{ font-family: var(--font-display); font-size: 14.5px; font-weight: 800; }
.ng-count{ margin-left: auto; font-size: 11.5px; font-weight: 750; color: var(--muted); }
.ng-chev{ flex: none; width: 9px; height: 9px; color: var(--muted); border-right: 2.3px solid currentColor; border-bottom: 2.3px solid currentColor; transform: rotate(-45deg); }
/* trilho à esquerda: deixa visível que os cards pertencem ao dia do cabeçalho */
.ng-notes{ display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0 20px; padding-left: 14px; border-left: 2px solid var(--border); }
.note-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.nc-body{ margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg2); white-space: pre-wrap; overflow-wrap: anywhere; }
.nc-foot{ display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.nc-foot .chip{ margin-top: 0; }
.nc-when{ margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---------- ranking ---------- */
.duel{ background: linear-gradient(150deg, oklch(0.235 0.040 293), oklch(0.185 0.035 293)); border-radius: var(--r-xl); padding: 18px 16px; color: oklch(1 0 0); box-shadow: var(--shadow); }
.duel-head{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fighter{ display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.fighter .fname{ font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.fighter .fyouself{ font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.fighter.p .fyouself{ background: var(--violet); color: oklch(1 0 0); }
.fighter.d .fyouself{ background: var(--lime); color: var(--daina-ink); }
.fighter .favatar{ width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.fighter.p .favatar{ background: linear-gradient(150deg, oklch(0.62 0.20 293), oklch(0.47 0.19 293)); box-shadow: 0 0 0 3px oklch(0.545 0.208 293 / .55); }
.fighter.d .favatar{ background: linear-gradient(150deg, oklch(0.87 0.16 130), oklch(0.75 0.17 138)); box-shadow: 0 0 0 3px oklch(0.815 0.172 133 / .5); }
.vs{ font-family: var(--font-display); font-size: 15px; font-weight: 800; color: oklch(1 0 0 / .5); letter-spacing: .06em; }

.duel-rows{ margin-top: 18px; border-top: 1px solid oklch(1 0 0 / .14); }
.mrow{ display: grid; grid-template-columns: 1fr minmax(96px, 1.15fr) 1fr; align-items: center; gap: 6px; padding: 11px 0; border-bottom: 1px solid oklch(1 0 0 / .10); }
.mrow:last-child{ border-bottom: 0; }
.mlabel{ font-size: 11.5px; font-weight: 650; color: oklch(1 0 0 / .70); text-align: center; }
.mval{ font-family: var(--font-display); font-size: 21px; font-weight: 800; text-align: center; color: oklch(1 0 0 / .70); display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.mval em{ font-style: normal; font-size: 12px; font-weight: 700; color: oklch(1 0 0 / .48); }
.mval.win{ color: oklch(1 0 0); }
.mrow.win-d .mval.win{ color: var(--lime); }
.mrow.win-p .mval.win{ color: oklch(0.80 0.16 295); }
.mval .crown{ width: 13px; height: 13px; align-self: center; margin-left: 5px; }

/* shared bar + chart */
.panel{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.panel h3{ margin: 0 0 4px; font-family: var(--font-display); font-size: 16.5px; font-weight: 800; }
.panel p.sub{ margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }

.divbar{ display: flex; height: 46px; border-radius: 14px; overflow: hidden; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.divbar .seg{ display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: 13.5px; transition: opacity .15s ease; min-width: 0; }
/* o rótulo precisa do próprio contexto de corte: no container flex o text-overflow não alcança o texto anônimo (corta seco) */
.divbar .seg .lbl{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divbar .seg.p{ background: var(--patrick); color: var(--patrick-ink); }
.divbar .seg.d{ background: var(--daina); color: var(--daina-ink); }
.divbar .seg:hover{ opacity: .9; }
.divbar-legend{ display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--fg2); font-weight: 650; }
.dotc{ display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dotc.p{ background: var(--patrick); } .dotc.d{ background: var(--daina); }

.chart{ margin-top: 6px; }
.chart-grid{ position: relative; height: 132px; }
.chart-baseline{ position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--border); }
.chart-rows{ position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 0; }
.dgroup{ flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 22px; }
.bar{ width: 9px; border-radius: 4px 4px 3px 3px; transition: height .4s cubic-bezier(.2,.8,.3,1); }
.bar.p{ background: linear-gradient(180deg, oklch(0.66 0.20 293), var(--patrick)); }
.bar.d{ background: linear-gradient(180deg, oklch(0.88 0.17 130), oklch(0.76 0.17 136)); }
.dnum{ position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9.5px; color: var(--muted); font-weight: 650; }
.dgroup.zero .bar{ height: 3px !important; opacity: .4; }
.chart-foot{ display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--fg2); font-weight: 650; }

.badge-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge{
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--border);
}
.badge .bt{
  width: 42px; height: 42px; flex: none; border-radius: 14px;
  display: grid; place-items: center; background: var(--surface3); color: var(--muted);
}
.badge.unlocked .bt{ background: var(--violet-tint); color: var(--violet-d); }
.badge-grid.d .badge.unlocked .bt{ background: var(--lime-tint); color: var(--daina-strong); }
.badge .btxt{ min-width: 0; }
.badge .btxt strong{ display: block; font-family: var(--font-display); font-size: 13px; font-weight: 800; line-height: 1.15; }
.badge .btxt span{ display: block; font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.badge.locked{ background: var(--surface); }
.badge.locked .bt{ filter: grayscale(1); opacity: .5; }
.badge.locked .btxt strong{ color: var(--muted); }
.badge.unlocked .btxt span{ color: var(--fg2); }

.insights{ display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.insight{ display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--shadow-sm); }
.insight .ti{ width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; }
.insight .ti.fl{ background: var(--orange-tint); }
.insight .ti.mc{ background: var(--violet-tint); color: var(--violet-d); }
.insight .ti.du{ background: var(--lime-tint); color: var(--daina-strong); }
.insight p{ margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--fg2); }
.insight p b{ color: var(--fg); font-weight: 750; }

/* ---------- profile ---------- */
.prof-head{
  border-radius: var(--r-xl); padding: 20px 18px; color: oklch(1 0 0);
  background: linear-gradient(150deg, oklch(0.470 0.150 293), oklch(0.360 0.130 293));
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.prof-head h3{ margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.prof-head p{ margin: 3px 0 0; font-size: 12.5px; color: oklch(1 0 0 / .82); }
.prof-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.pstat{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 13px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.pstat b{ display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; }
.pstat span{ display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 5px; }
.phase{ margin-bottom: 14px; }
.phase-top{ display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 700; }
.phase-top span{ font-size: 11.5px; color: var(--muted); font-weight: 650; }
.phase-bar{ height: 10px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin-top: 7px; }
.phase-bar i{ display: block; height: 100%; border-radius: 999px; background: var(--violet); }
.phase.done .phase-bar i{ background: var(--ok); }
.chips{ display: flex; flex-wrap: wrap; gap: 7px; }
.achip{ display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: var(--violet-tint); color: var(--violet-d); }
.achip .bt{ width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: oklch(1 0 0 / .7); }

/* ---------- badges icons (CSS drawn) ---------- */
.bi{ width: 22px; height: 22px; position: relative; display: block; color: inherit; }
.bi-check::after{ content:""; position: absolute; left: 4px; top: 5px; width: 13px; height: 7px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 2px; transform: rotate(-45deg); }
.bi-mic::before{ content:""; position: absolute; left: 7px; top: 1px; width: 8px; height: 12px; border-radius: 5px; background: currentColor; }
.bi-mic::after{ content:""; position: absolute; left: 3px; top: 9px; width: 16px; height: 10px; border: 2.5px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; }
.bi-chat::before{ content:""; position: absolute; left: 1px; top: 3px; width: 20px; height: 14px; border-radius: 6px; background: currentColor; }
.bi-chat::after{ content:""; position: absolute; left: 5px; bottom: 1px; width: 0; height: 0; border-left: 7px solid currentColor; border-bottom: 6px solid transparent; }
.bi-flag::before{ content:""; position: absolute; left: 4px; top: 1px; width: 2.5px; height: 20px; border-radius: 2px; background: currentColor; }
.bi-flag::after{ content:""; position: absolute; left: 6px; top: 2px; width: 13px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); }
.bi-stack::before{ content:""; position: absolute; left: 2px; top: 3px; width: 18px; height: 4px; border-radius: 2px; background: currentColor; box-shadow: 0 6.5px 0 currentColor, 0 13px 0 currentColor; }
.bi-bolt{ width: 22px; height: 22px; background: currentColor; clip-path: polygon(58% 0, 16% 54%, 44% 54%, 36% 100%, 84% 42%, 54% 42%); }
.bi-dumbbell::before{ content:""; position: absolute; left: 0; top: 2px; width: 6px; height: 18px; border-radius: 3px; background: currentColor; box-shadow: 16px 0 0 currentColor; }
.bi-dumbbell::after{ content:""; position: absolute; left: 3px; top: 8px; width: 16px; height: 5px; border-radius: 3px; background: currentColor; }

/* flame (CSS drawn) */
.flame{ position: relative; width: var(--fs, 22px); height: calc(var(--fs, 22px) * 1.2); flex: none; display: inline-block; --fa: oklch(0.84 0.17 74); --fb: oklch(0.660 0.200 42); --fc: oklch(0.95 0.13 92); }
.flame::before{
  content:""; position: absolute; left: 50%; top: 54%; width: var(--fs, 22px); height: var(--fs, 22px);
  margin: calc(var(--fs, 22px) / -2) 0 0 calc(var(--fs, 22px) / -2);
  background: linear-gradient(160deg, var(--fa), var(--fb));
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
}
.flame::after{
  content:""; position: absolute; left: 50%; top: 66%; width: calc(var(--fs, 22px) * .42); height: calc(var(--fs, 22px) * .42);
  margin: calc(var(--fs, 22px) * -.21) 0 0 calc(var(--fs, 22px) * -.21);
  background: var(--fc); border-radius: 0 50% 50% 50%; transform: rotate(45deg);
}
.flame.sm{ --fs: 17px; }
.person-card.daina .flame{ --fa: oklch(0.660 0.200 48); --fb: oklch(0.540 0.195 38); --fc: oklch(0.86 0.15 82); }

/* ---------- tab bar ---------- */
.tabbar{
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: oklch(1 0 0 / .82); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tab{
  min-height: 56px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--muted); font-size: 10.5px; font-weight: 750; letter-spacing: .01em;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.tab .ico{ width: 22px; height: 22px; position: relative; display: block; }
.tab:active{ transform: scale(.94); }
.tab:hover{ color: var(--fg2); }
.tab.active{ color: var(--violet-d); background: var(--violet-tint); }
.ico-hoje{ border: 2.3px solid currentColor; border-radius: 7px; }
.ico-hoje::after{ content:""; position: absolute; left: 4.5px; top: 6.5px; width: 9px; height: 5px; border-left: 2.3px solid currentColor; border-bottom: 2.3px solid currentColor; border-radius: 1px; transform: rotate(-45deg); }
.ico-cal{ border: 2.3px solid currentColor; border-radius: 7px; }
.ico-cal::before{ content:""; position: absolute; left: 0; right: 0; top: 4px; height: 2.3px; background: currentColor; }
.ico-cal::after{ content:""; position: absolute; left: 4px; top: 9px; width: 4px; height: 4px; border-radius: 1px; background: currentColor; box-shadow: 6px 0 0 currentColor, 0 6px 0 currentColor, 6px 6px 0 currentColor; }
.ico-rank i{ position: absolute; bottom: 0; left: 50%; width: 6px; height: 13px; margin-left: -3px; border-radius: 3px 3px 0 0; background: currentColor; }
.ico-rank::before{ content:""; position: absolute; bottom: 0; left: 0; width: 6px; height: 8px; border-radius: 3px 3px 0 0; background: currentColor; }
.ico-rank::after{ content:""; position: absolute; bottom: 0; right: 0; width: 6px; height: 8px; border-radius: 3px 3px 0 0; background: currentColor; }
.ico-user::before{ content:""; position: absolute; left: 50%; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 2.3px solid currentColor; }
.ico-user::after{ content:""; position: absolute; left: 3px; right: 3px; bottom: 1px; height: 9px; border: 2.3px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
.ico-notas{ border: 2.3px solid currentColor; border-radius: 5px; }
.ico-notas::before{ content:""; position: absolute; left: 4px; right: 4px; top: 5.5px; height: 2.3px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; }

/* ---------- selector ---------- */
.selector{
  position: absolute; inset: 0; z-index: 40; overflow-y: auto;
  padding: 40px 22px 28px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(80% 42% at 78% 6%, oklch(0.55 0.20 293 / .75), transparent 62%),
    radial-gradient(70% 40% at 8% 96%, oklch(0.62 0.17 133 / .30), transparent 60%),
    linear-gradient(170deg, oklch(0.245 0.055 293), oklch(0.155 0.035 293));
  color: oklch(1 0 0);
  transition: opacity .3s ease, visibility .3s;
}
.selector.hide{ opacity: 0; visibility: hidden; pointer-events: none; }
.brand{ display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 999px; background: oklch(1 0 0 / .12); border: 1px solid oklch(1 0 0 / .16); }
.brand .bi-bolt{ width: 15px; height: 15px; color: var(--lime); }
.brand b{ font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.selector h1{ font-family: var(--font-display); font-size: 33px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin: 22px 0 10px; }
.selector .sub{ font-size: 15px; line-height: 1.45; color: oklch(1 0 0 / .72); margin: 0 0 26px; max-width: 30ch; }
.people{ display: flex; flex-direction: column; gap: 14px; }
.person-card{
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 15px; min-height: 110px; border-radius: var(--r-xl);
  transition: transform .16s ease, box-shadow .16s ease;
}
.person-card:hover{ transform: translateY(-2px); }
.person-card:active{ transform: scale(.975); }
.person-card.patrick{ background: linear-gradient(140deg, oklch(0.585 0.205 293), oklch(0.455 0.190 293)); color: oklch(1 0 0); box-shadow: 0 16px 34px oklch(0.44 0.19 293 / .4); }
.person-card.daina{ background: linear-gradient(140deg, oklch(0.855 0.170 128), oklch(0.760 0.175 138)); color: var(--daina-ink); box-shadow: 0 16px 34px oklch(0.62 0.17 135 / .35); }
.person-card .pc-info{ flex: 1; min-width: 0; }
.pc-hello{ display: block; font-size: 12.5px; font-weight: 700; opacity: .78; }
.pc-name{ display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 1px 0 10px; }
.pc-stats{ display: flex; gap: 7px; }
.pc-stat{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px; background: oklch(1 0 0 / .18); font-size: 12px; font-weight: 750; white-space: nowrap; }
.person-card.daina .pc-stat{ background: oklch(1 0 0 / .42); }
.pc-stat .bi{ width: 15px; height: 15px; }
.pc-stat .flame{ --fs: 15px; }
.pc-arrow{ flex: none; width: 30px; height: 30px; position: relative; border-radius: 50%; background: oklch(1 0 0 / .18); }
.person-card.daina .pc-arrow{ background: oklch(1 0 0 / .42); }
.pc-arrow::before{ content:""; position: absolute; left: 10px; top: 9px; width: 10px; height: 10px; border-right: 2.6px solid currentColor; border-bottom: 2.6px solid currentColor; border-radius: 2px; transform: rotate(-45deg); }
.sel-foot{ margin-top: auto; padding-top: 26px; font-size: 12.5px; color: oklch(1 0 0 / .62); text-align: center; font-weight: 600; }

/* ---------- login (PAT-21) ---------- */
/* O seletor de perfil virou login com senha; o card escolhido ganha um anel, e o form de senha
   reaproveita o fundo escuro do overlay. */
.person-card.selected{ box-shadow: 0 0 0 3px oklch(1 0 0), 0 16px 34px oklch(0.44 0.19 293 / .4); }
.person-card.daina.selected{ box-shadow: 0 0 0 3px oklch(1 0 0), 0 16px 34px oklch(0.62 0.17 135 / .35); }
.login-form{ display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login-form input{
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid oklch(1 0 0 / .3);
  background: oklch(1 0 0 / .1); color: inherit; font-size: 16px;
}
.login-form input::placeholder{ color: oklch(1 0 0 / .55); }
.login-form input:focus-visible{ outline-color: oklch(1 0 0); }
.login-form button{
  min-height: 52px; border: 0; border-radius: var(--r);
  background: var(--lime); color: oklch(0.24 0.06 135); font-weight: 800; font-size: 16px;
}
.login-form button:disabled{ opacity: .55; }
.login-err{ font-size: 13px; font-weight: 650; color: oklch(0.85 0.16 25); }

/* ---------- toast ---------- */
.toast{
  position: absolute; left: 50%; bottom: 92px; z-index: 60;
  transform: translate(-50%, 16px);
  max-width: 320px; padding: 12px 18px; border-radius: 999px;
  background: oklch(0.205 0.032 293 / .96); color: oklch(1 0 0);
  font-size: 13.5px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.toast.show{ opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 440px){
  body{ display: block; background: var(--bg); }
  .phone{ width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- adições locais: integração com a API real (multi-usuário, gravações, navegação de mês) --- */
@media (max-width: 440px){
  body{ display:block; padding:0; background:oklch(0.974 0.010 300); }
  .phone{ width:100%; height:100dvh; max-height:none; border:0; border-radius:0; }
}
.rec-del{ background:none; border:0; color:inherit; opacity:.5; font-size:12px; padding:2px 4px; cursor:pointer; }
.rec-del:hover{ opacity:1; }
.cal-nav{ background:none; border:0; color:inherit; font-size:20px; line-height:1; padding:0 12px; cursor:pointer; opacity:.7; }
.cal-nav:hover{ opacity:1; }
.badge .bt{ font-size:17px; }
.achip .bt{ margin-right:6px; font-size:15px; }
.btn-rec.active{ border-color:var(--late,#e0574f); }

/* --- day-nav: visão do dia (tarefas read-only, notas editáveis, áudios do dia) --- */
/* O container recebe foco por script ao trocar de dia; o anel só aparece em navegação por teclado. */
.day-summary:focus{ outline: none; }
.day-summary:focus-visible{ outline: 3px solid var(--violet); outline-offset: 6px; border-radius: var(--r-lg); }
.ds-sec{ margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ds-sec h4{
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 9px; font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.ds-sec h4 span{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.ds-titem{ padding: 10px 11px; border-radius: var(--r-sm); background: var(--surface2); }
.ds-titem .ds-task{ flex-wrap: wrap; row-gap: 6px; }
.ds-titem .ds-task .pin,
.ds-titem .ds-task .chip{ margin-top: 0; flex: none; }
.ds-tarea{
  width: 100%; min-height: 54px; margin-top: 9px; resize: vertical;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 11px; font-size: 13.5px; line-height: 1.45;
}
.ds-tarea::placeholder{ color: var(--muted); }
.ds-sec .note{ margin-top: 0; }
.ds-orfas{ border-top: 1px dashed var(--border2); }
.ds-empty{ margin: 0; font-size: 12.5px; color: var(--muted); }
.ds-futuro{ margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
