/* Foco: cartões grafite sobre Space Cadet, um destaque só (Tan), Inter.
   Paleta original do usuário (21/10): Space Cadet, Slate, Tan, Coffee, Caput Mortuum.
   Só tema escuro, de propósito: o claro é luminoso demais para o uso à noite. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #18212f;
  --card: #212c3e;
  --card-2: #2b384d;
  --line: #2e3b51;
  --track: #34425a;
  --ink: #ede5d9;
  --mute: #a9b5c3;
  --faint: #8394a8;
  --tan: #d5b893;      /* destaque: dia escolhido, concluído, aba ativa */
  --on-tan: #18212f;
  --slate: #8fa4bb;    /* prioridade alta */
  --gem: #e07b7d;      /* essencial e gema (granada clara, para ler no escuro) */
  --gem-deep: #b54a50;
  --coin: #dcb56b;
  --late: #e69a93;
  --strike: rgba(237, 229, 217, .55);
  --backdrop: rgba(8, 12, 19, .66);
  --lift: 0 16px 32px -14px rgba(0, 0, 0, .75);

  /* nomes que o app.js lê para as faíscas */
  --mint: var(--tan);
  --gem-crown: var(--gem);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --t-press: 120ms;
  --t-enter: 340ms;
  --t-exit: 210ms;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
.app { max-width: 36rem; margin-inline: auto; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; border-radius: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.badge {
  position: absolute;
  min-width: 1.125rem; height: 1.125rem; padding: 0 .3rem;
  border-radius: .5625rem;
  font-size: .6875rem; font-weight: 700; line-height: 1.125rem; text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px var(--bg);
}

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem .75rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
h1 { margin: 0; min-width: 0; display: flex; flex-direction: column; }
#day-name { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
#day-date { font-size: .9375rem; font-weight: 500; color: var(--tan); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-swap { animation: title-in var(--t-enter) var(--ease-out); }
@keyframes title-in { from { opacity: 0; transform: translateY(.35rem); } }

/* avatar do Foco: abre o que ficou para trás */
.avatar {
  position: relative; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--card-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--t-enter) var(--spring);
}
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar:active { transform: scale(.9); transition-duration: var(--t-press); }
.avatar .badge { top: -.2rem; right: -.3rem; background: var(--gem-deep); color: #fff; }

/* ---------- semana ---------- */
.week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem;
  margin: 0 1rem .625rem;
  touch-action: pan-y;
}
.wd {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  min-height: 4rem; padding: .5rem 0 .875rem;
  border: 1px solid var(--line); border-radius: 1rem;
  background: var(--card); color: var(--ink);
  transition: transform var(--t-enter) var(--spring), background-color .2s, color .2s;
}
.wd:active { transform: scale(.9); transition-duration: var(--t-press); }
.wd-name { font-size: .75rem; color: var(--mute); line-height: 1; }
.wd b { font-size: 1.0625rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wd.today { border-color: var(--tan); }
.wd[aria-current="date"] { background: var(--tan); border-color: var(--tan); color: var(--on-tan); }
.wd[aria-current="date"] .wd-name { color: var(--on-tan); }
.wd.has::after, .wd.all-done::after {
  content: ''; position: absolute; bottom: .375rem; left: 50%;
  width: .3125rem; height: .3125rem; margin-left: -.15625rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.3px currentColor; opacity: .75;
}
.wd.all-done::after { background: currentColor; opacity: 1; }
.wd.all-done:not([aria-current])::after { background: var(--tan); box-shadow: none; }

/* ---------- placar: essenciais, gemas, moedas ---------- */
.score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; margin: 0 1rem 1rem; }
.stat {
  display: flex; flex-direction: column; gap: .375rem;
  padding: .75rem;
  border: 1px solid var(--line); border-radius: 1.125rem;
  background: var(--card);
  min-width: 0;
}
.stat .k { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--mute); white-space: nowrap; }
.stat .k svg { width: 1.125rem; height: 1.125rem; color: var(--tan); }
.stat .v { align-self: flex-start; font-size: 1.25rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .75rem; color: var(--mute); font-weight: 500; margin-left: .1rem; }
.slots { display: flex; gap: .3rem; }
.slots i { width: 1.375rem; height: .375rem; border-radius: .2rem; background: var(--track); }
.slots i.chosen { box-shadow: inset 0 0 0 1.5px var(--gem); background: transparent; }
.slots i.on { background: var(--gem); }
body.brain .score, body.routine .score, body.brain .week, body.routine .week { display: none; }

.pop { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.shine { animation: shine 1.1s var(--ease-out); }
@keyframes shine { 30% { border-color: var(--gem); box-shadow: 0 0 22px -4px var(--gem); } }

.flyer { position: fixed; z-index: 50; pointer-events: none; will-change: transform; }
.spark { position: fixed; z-index: 49; width: .45rem; height: .45rem; border-radius: 50%; pointer-events: none; }

/* ---------- lista ---------- */
main {
  min-height: calc(100dvh - 18rem);
  padding: 0 1rem calc(11rem + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
main.dragging { user-select: none; -webkit-user-select: none; }
.list-title { margin: 0 .25rem .625rem; font-size: 1.125rem; font-weight: 600; }

.tasks {
  list-style: none; margin: 0; padding: .125rem .875rem;
  border: 1px solid var(--line); border-radius: 1.125rem;
  background: var(--card);
}
.tasks:empty { display: none; }

.task {
  position: relative;
  display: flex; align-items: center;
  min-height: 3.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.task:last-child { border-bottom: 0; }
.task.step { padding-left: 2.25rem; min-height: 3.25rem; }
.task.step::before {
  content: ''; position: absolute; left: 1.1rem; top: -.5rem; bottom: 50%;
  width: .75rem; border: 1.5px solid var(--track); border-top: 0; border-right: 0; border-bottom-left-radius: .5rem;
}

.check {
  flex: none;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-left: -.375rem;
  border: 0; background: transparent; padding: 0;
}
.box {
  display: grid; place-items: center;
  width: 1.875rem; height: 1.875rem;
  border-radius: 50%;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1.5px var(--track);
  transition: transform var(--t-enter) var(--spring), background-color .2s, box-shadow .2s;
}
.step .box { width: 1.5rem; height: 1.5rem; }
.box svg { width: 1rem; height: 1rem; stroke-width: 2.6; stroke: var(--on-tan); stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.check:active .box { transform: scale(.8); transition-duration: var(--t-press); }
.task.alta .box { box-shadow: inset 0 0 0 1.5px var(--slate); }
.task.ess .box { box-shadow: inset 0 0 0 1.5px var(--gem); }
.done .box { background: var(--tan); box-shadow: none; }
.task.ess.done .box { background: var(--gem-deep); }
.task.ess.done .box svg { stroke: #fff; }
.done .box svg { stroke-dashoffset: 0; }
.box.count {
  width: auto; min-width: 2.25rem; padding: 0 .35rem; border-radius: 1rem;
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.check[aria-checked="mixed"] .box { box-shadow: inset 0 0 0 1.5px var(--tan); }

.body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  padding: .625rem .5rem .625rem .375rem;
  border: 0; background: transparent; text-align: left;
  border-radius: .5rem;
}
.text {
  max-width: 100%;
  font-size: 1rem; font-weight: 500;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--strike), var(--strike));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0 1.5px;
  transition: background-size .34s var(--ease-out), color .3s;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.step .text { font-size: .9375rem; }
.done .text { background-size: 100% 1.5px; color: var(--mute); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .625rem; font-size: .8125rem; color: var(--mute); }
.meta svg { width: .9375rem; height: .9375rem; margin-right: .2rem; }
.until { display: inline-flex; align-items: center; color: var(--slate); }
.task.late .until { color: var(--late); font-weight: 600; }
.cat::before { content: '#'; opacity: .6; }
.done-at { font-variant-numeric: tabular-nums; }
.earned { display: inline-flex; align-items: center; color: var(--tan); font-weight: 600; }

.move, .grip {
  flex: none;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.75rem;
  border: 0; background: transparent; color: var(--faint);
  border-radius: .75rem;
  transition: transform var(--t-enter) var(--spring), color .15s;
}
.move svg, .grip svg { width: 1.25rem; height: 1.25rem; }
.move:active { transform: scale(.85); color: var(--ink); transition-duration: var(--t-press); }
.grip { margin-right: -.5rem; touch-action: none; cursor: grab; }
.tasks.sorting { user-select: none; -webkit-user-select: none; }
.task.lifting { z-index: 3; background: var(--card-2); border-radius: .875rem; border-bottom-color: transparent; box-shadow: var(--lift); transition: box-shadow .2s; scale: 1.02; }
.task.lifting .grip { cursor: grabbing; color: var(--ink); }

.empty {
  margin: 0; padding: 1.5rem 1.25rem;
  border: 1.5px dashed var(--track); border-radius: 1.125rem;
  color: var(--mute); text-align: center;
}

/* ---------- rotina: um cartão por rotina ---------- */
body.routine .tasks { padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: .625rem; }
.rt {
  position: relative;
  padding: .75rem .875rem .875rem;
  border: 1px solid var(--line); border-radius: 1.125rem;
  background: var(--card);
}
.rt-top { display: flex; align-items: center; }
.rt-top .body { padding-block: .375rem; }
.status { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; color: var(--mute); }
.status::before { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.rt.ready .status { color: var(--tan); }
.rt .meta { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: .5rem; margin-top: .375rem; }
.rt .col { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.rt .col:last-child { text-align: right; align-items: flex-end; }
.rt .col .k { font-size: .75rem; color: var(--mute); }
.rt .col b { display: inline-flex; align-items: center; color: var(--ink); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt .col b svg { width: .9375rem; height: .9375rem; margin-right: .2rem; }
/* a barra esvazia aos poucos até a rotina voltar */
.fresh { height: .375rem; margin-top: .75rem; border-radius: .2rem; background: var(--track); overflow: hidden; }
.fresh i { display: block; height: 100%; width: calc(var(--fresh, 0) * 100%); border-radius: .2rem; background: var(--tan); transition: width .6s var(--ease-out); }

/* ---------- entrada + abas ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  max-width: 36rem; margin-inline: auto;
  background: linear-gradient(to top, var(--bg) 82%, transparent);
}
.add { padding: .75rem 1rem .5rem; }
.add input {
  width: 100%; height: 3.25rem;
  padding: 0 1.125rem;
  border: 1px solid var(--line); border-radius: 1.625rem;
  background: var(--card);
  font-size: 1rem;
  transition: border-color .2s, transform var(--t-enter) var(--spring);
}
.add input::placeholder { color: var(--faint); }
.add input:focus-visible { outline: none; border-color: var(--tan); }
.add.sent input { animation: squish .36s var(--spring); }
@keyframes squish { 30% { transform: scale(.98, .92); } }
.hint { margin: .4rem .5rem 0; font-size: .75rem; color: var(--faint); word-spacing: .05em; white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .375rem; padding-inline: .25rem; }
.chips:not(:empty) { margin-bottom: .5rem; }
.chip {
  padding: .2rem .625rem;
  border: 1px solid var(--tan); border-radius: 1rem;
  background: var(--card); color: var(--tan);
  font-size: .75rem; font-weight: 600;
  animation: chip-in var(--t-enter) var(--spring);
}
@keyframes chip-in { from { transform: scale(.6); opacity: 0; } }
.chip-essential { border-color: var(--gem); color: var(--gem); }
.chip-imp { border-color: var(--slate); color: var(--slate); }

.tabs {
  display: flex; justify-content: space-between; align-items: center;
  padding: .375rem .75rem max(.625rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.tab {
  position: relative;
  display: flex; align-items: center; gap: .5rem;
  min-width: 3rem; height: 3rem; padding: 0 .625rem; justify-content: center;
  border: 0; border-radius: 1.5rem;
  background: transparent; color: var(--mute);
  font-size: .9375rem; font-weight: 600;
  transition: color .2s, transform var(--t-enter) var(--spring);
}
.tab span { display: none; }
.tab.on { color: var(--tan); }
.tab.on span { display: inline; }
.tab:active { transform: scale(.9); transition-duration: var(--t-press); }
.tab .badge { top: .3rem; left: 1.65rem; background: var(--tan); color: var(--on-tan); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(10.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(34rem, calc(100% - 2rem));
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem .625rem 1rem;
  border: 1px solid var(--track); border-radius: 1rem;
  background: var(--card-2); color: var(--ink);
  box-shadow: var(--lift);
  font-size: .9375rem;
  animation: toast-in .36s var(--spring);
}
@keyframes toast-in { from { transform: translate(-50%, 1rem); opacity: 0; } }
.toast span { flex: 1; }
.link-btn {
  min-height: 2.75rem; padding: 0 .5rem;
  border: 0; background: transparent; color: var(--tan);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- folhas (dialog) ---------- */
dialog.sheet {
  width: 100%; max-width: 36rem;
  max-height: 88dvh; overflow: auto;
  margin: auto auto 0; padding: 1.75rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  border: 1px solid var(--line); border-bottom: 0; border-radius: 1.5rem 1.5rem 0 0;
  background: var(--card); color: var(--ink);
  overscroll-behavior: contain;
}
dialog.sheet::before {
  content: ''; position: absolute; top: .625rem; left: 50%;
  width: 2.5rem; height: .25rem; margin-left: -1.25rem; border-radius: .125rem; background: var(--track);
}
dialog.sheet[open] { animation: sheet-in .4s var(--ease-out); }
dialog.sheet.closing { animation: sheet-out var(--t-exit) var(--ease-in) forwards; }
@keyframes sheet-in { from { transform: translateY(3rem); opacity: 0; } }
@keyframes sheet-out { to { transform: translateY(2.5rem); opacity: 0; } }
dialog::backdrop { background: var(--backdrop); animation: fade .3s ease-out; }
dialog.closing::backdrop { animation: fade var(--t-exit) ease-in reverse forwards; }
@keyframes fade { from { opacity: 0; } }
dialog h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; }
dialog h2[tabindex="-1"]:focus { outline: none; }

.field { display: flex; flex-direction: column; gap: .375rem; margin: 0 0 .875rem; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .8125rem; color: var(--mute); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; min-height: 3rem;
  padding: .625rem .875rem;
  border: 1px solid var(--line); border-radius: .875rem;
  background: var(--bg);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--tan); }
.field textarea { resize: vertical; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr .75fr; gap: .625rem; }

.seg { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.seg legend { width: 100%; margin-bottom: .375rem; }
.seg label {
  position: relative;
  padding: .625rem 1rem;
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: var(--bg);
  font-weight: 600; font-size: .9375rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg label.lv-alta { color: var(--slate); }
.seg label.lv-ess { color: var(--gem); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--tan); border-color: var(--tan); color: var(--on-tan); }
.seg label.lv-alta:has(input:checked) { background: var(--slate); border-color: var(--slate); }
.seg label.lv-ess:has(input:checked) { background: var(--gem-deep); border-color: var(--gem-deep); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--tan); outline-offset: 2px; }

.every { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.every legend { width: 100%; margin-bottom: .375rem; }
.every input { flex: 1; width: auto; }
.every select {
  flex: 1.4; min-height: 3rem; padding: 0 .875rem;
  border: 1px solid var(--line); border-radius: .875rem;
  background: var(--bg); font-weight: 600;
}
.redit-last { margin: 0 0 1rem; color: var(--mute); font-size: .9375rem; }

.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1.25rem; }
.actions.left { justify-content: flex-start; margin-top: .5rem; }
.btn {
  min-height: 3rem; padding: 0 1.25rem;
  border: 0; border-radius: 1.5rem;
  background: var(--tan); color: var(--on-tan);
  font-weight: 600;
  transition: transform var(--t-enter) var(--spring), filter .15s;
}
.btn:active { transform: scale(.95); transition-duration: var(--t-press); }
.btn.ghost { background: var(--card-2); color: var(--ink); }
.btn.danger { color: var(--late); }
.btn.sm { min-height: 2.75rem; padding: 0 .875rem; font-size: .875rem; }
.muted { color: var(--mute); margin: 0 0 .875rem; font-size: .9375rem; }

.move-task { margin: -.5rem 0 1rem; color: var(--mute); overflow-wrap: anywhere; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  min-height: 4.25rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 1rem;
  background: var(--bg); text-align: left;
  transition: transform var(--t-enter) var(--spring), border-color .15s;
}
.choice b { font-size: 1rem; font-weight: 600; }
.choice span { font-size: .8125rem; color: var(--mute); }
.choice:active { transform: scale(.96); border-color: var(--tan); transition-duration: var(--t-press); }

/* calendário */
.icon-btn {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: var(--card-2); color: var(--ink);
}
.cal-mode { margin: 0 0 .5rem; font-weight: 600; color: var(--tan); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-head h2 { margin: 0; text-transform: none; }
.cal-head h2::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.dow { font-size: .75rem; color: var(--mute); text-decoration: none; padding: .25rem 0; }
.day {
  position: relative;
  aspect-ratio: 1; max-width: 100%; min-height: 2.75rem;
  border: 1px solid transparent; border-radius: .875rem;
  background: transparent;
  font-variant-numeric: tabular-nums; font-weight: 500;
  transition: transform var(--t-enter) var(--spring), background-color .15s;
}
.day:active { transform: scale(.88); transition-duration: var(--t-press); }
.day.today { border-color: var(--tan); }
.day[aria-current="date"] { background: var(--tan); border-color: var(--tan); color: var(--on-tan); font-weight: 700; }
.day.has::after, .day.all-done::after {
  content: ''; position: absolute; left: 50%; bottom: 12%;
  width: .3125rem; height: .3125rem; margin-left: -.15625rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.3px currentColor;
}
.day.all-done::after { background: currentColor; }

/* pendentes */
.pend-day { color: var(--mute); font-size: .875rem; font-weight: 500; margin: 1rem 0 .5rem; }
.pend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.pend li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); }
.pend li.alta { border-left: 3px solid var(--slate); }
.pend li.ess { border-left: 3px solid var(--gem); }
.pend .text { flex: 1 1 10rem; font-weight: 500; }
.pend-actions { display: flex; flex-wrap: wrap; gap: .375rem; }

@media (min-width: 40rem) {
  dialog.sheet { margin: auto; border-bottom: 1px solid var(--line); border-radius: 1.5rem; }
  dialog.sheet::before { display: none; }
}
@media (max-width: 24.5rem) {
  .week { gap: .25rem; margin-inline: .625rem; }
  .score { margin-inline: .625rem; gap: .5rem; }
  .stat { padding: .625rem; }
  .stat .k { font-size: .75rem; }
  main { padding-inline: .625rem; }
}
@media (max-height: 30rem) {
  .hint { display: none; }
  .score { display: none; }
}
@media (hover: hover) {
  .move:hover, .grip:hover, .tab:hover { color: var(--ink); }
  .tab.on:hover { color: var(--tan); }
  .check:hover .box { box-shadow: inset 0 0 0 1.5px var(--tan); }
  .done .check:hover .box { box-shadow: none; }
  .btn:hover { filter: brightness(1.08); }
  .day:hover:not([aria-current]) { background: var(--card-2); }
  .wd:hover:not([aria-current]) { border-color: var(--track); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done .box svg { stroke-dashoffset: 0; }
}
