:root {
  --bg: #fafaf9; --panel: #fff; --ink: #1c1917; --ink2: #57534e; --muted: #a8a29e;
  --line: #ebe9e6; --line2: #f4f3f1; --brand: #1c1917; --accent: #2563eb;
  --ok: #15803d; --bad: #c2410c; --warn: #b45309;
  --r: 12px; --shadow: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0a09; --panel: #141211; --ink: #e7e5e4; --ink2: #a8a29e; --muted: #78716c; --line: #262321; --line2: #1c1a18; --brand: #e7e5e4; --ok: #4ade80; --bad: #fb923c; --shadow: none; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
code { background: var(--line2); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; } .red { color: var(--bad); }
.pad { padding: 4px 18px 16px; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); line-height: 1.1; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; display: grid; place-items: center; background: var(--brand); color: var(--panel); font-size: 16px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--line2); color: var(--ink); }
.nav a.on { background: var(--line2); color: var(--ink); }
.logout { color: var(--muted); font-size: 13px; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 22px 24px 80px; }

/* ---------- cabeçalhos ---------- */
.day-head, .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.day-nav { display: flex; gap: 6px; align-items: center; }
.day-nav input[type=date] { height: 36px; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 500; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); }
.btn.primary { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 17px; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--line2); color: var(--ink); }
.link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--bad); font-size: 13px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; height: 36px; min-width: 0; }
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input[type=color] { padding: 3px; width: 44px; cursor: pointer; }
input[type=checkbox] { height: auto; accent-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--ink) 8%, transparent); outline-offset: 0; border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; font-size: 13.5px; background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }
.flash.err { background: #fff7ed; color: #9a3412; border-color: #ffedd5; }
@media (prefers-color-scheme: dark) { .flash { background: #052e1a; color: #a7f3d0; border-color: #065f46; } .flash.err { background: #2a0b0b; color: #fecaca; border-color: #7f1d1d; } }

/* ---------- contadores ---------- */
.counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.counters.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.counters:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.counter { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-left: 1px solid var(--line); }
.counter:first-child { border-left: 0; }
.counter .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.counter strong { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter .sub { font-size: 12px; color: var(--muted); }
.counter.ok strong { color: var(--ok); }
.counter.bad { }
.counter.bad strong { color: var(--bad); }
.bar { height: 3px; border-radius: 99px; background: var(--line2); overflow: hidden; margin: 6px 0 3px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .35s ease; }
.counter.bad .bar i { background: var(--bad); }
.bar.cat i { background: var(--c); }

/* ---------- adicionar rápido ---------- */
.quick { display: flex; gap: 6px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.quick input[name=title] { flex: 1; border-color: transparent; }
.quick select { max-width: 210px; border-color: transparent; background: var(--line2); }
.quick input[type=date] { border-color: transparent; background: var(--line2); }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters.tight { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip.on { background: var(--panel); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 55%, var(--line)); }
.chip.toggle { margin-left: auto; }
.chip .dot { background: var(--c); }

/* ---------- grade ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 8px; flex-wrap: wrap; }
.card .hint { font-size: 12px; color: var(--muted); }
.card.empty p { padding: 26px; text-align: center; color: var(--muted); margin: 0; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--c, var(--muted)); display: inline-block; flex: none; }
.count { font-size: 12px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

.late-card { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.late-card h2 { color: var(--bad); }

/* ---------- itens ---------- */
.items { list-style: none; margin: 0; padding: 0 6px 6px; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: 8px; }
.item:hover { background: var(--line2); }
.item + .item { border-top: 1px solid var(--line2); }
.check { flex: none; width: 19px; height: 19px; margin-top: 2px; border-radius: 99px; border: 1.25px solid color-mix(in srgb, var(--c, var(--ink2)) 55%, var(--line)); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s, border-color .15s, transform .1s; }
.check:active { transform: scale(.9); }
.check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.item.done .check { background: var(--c, var(--ok)); border-color: var(--c, var(--ok)); }
.late-card .item .check { --c: var(--bad); }
.item.done .check svg { opacity: 1; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 400; overflow-wrap: anywhere; }
.item.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.item .ext { text-decoration: none; color: var(--accent); font-size: 13px; margin-left: 2px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.item .notes { font-size: 13px; color: var(--ink2); margin-top: 4px; white-space: normal; }
.item.done .notes, .item.done .meta { opacity: .6; }
.item .edit { opacity: 0; text-decoration: none; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.item:hover .edit { opacity: 1; }
@media (hover: none) { .item .edit { opacity: .6; } }
body.hide-done .item.done { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--ink2)) 12%, transparent); color: color-mix(in srgb, var(--c, var(--ink2)) 85%, var(--ink)); white-space: nowrap; }
.tag.soft { background: transparent; color: var(--muted); padding: 0; }
.tag.soft + .tag.soft::before { content: '·'; margin-right: 4px; }
.tag.time { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.tag.money { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.tag.late { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.tag.ok { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------- lateral ---------- */
.side-body { padding: 0 18px 16px; }
.side-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ink2); text-decoration: none; font-weight: 600; }
.side-link:hover { color: var(--ink); }
.meet { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line2); text-decoration: none; }
.meet:first-child { border-top: 0; }
.meet .mt { flex: none; width: 46px; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 14px; }
.meet .mt small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.meet .mb { flex: 1; min-width: 0; border-left: 1.5px solid var(--c); padding-left: 10px; }
.meet .mn { font-weight: 500; overflow-wrap: anywhere; }
.meet .mc { font-size: 12px; color: var(--muted); }
.meet.past { opacity: .5; }
.meet.now .mt { color: var(--ok); }
.meet a.join { font-size: 12px; font-weight: 650; color: var(--accent); text-decoration: none; }
.pay-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pay-sum div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.pay-sum span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pay-sum strong { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.pay-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.pay-list li { display: grid; grid-template-columns: 26px 1fr auto 62px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line2); }
.pay-list .pd { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-list .pt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-list .pv { font-variant-numeric: tabular-nums; color: var(--ink2); }
.pay-list .ps { font-size: 11px; font-weight: 500; text-align: right; color: var(--ink2); }
.pay-list li.paid { color: var(--muted); } .pay-list li.paid .pt { text-decoration: line-through; } .pay-list li.paid .ps { color: var(--ok); }
.pay-list li.late .ps, .pay-list li.late .pd { color: var(--bad); }
.mail { display: block; padding: 8px 0; border-top: 1px solid var(--line2); text-decoration: none; }
.mail:first-child { border-top: 0; }
.mail .ms { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .mf { font-size: 12px; color: var(--muted); }
.cta { font-size: 13.5px; color: var(--ink2); }
.cta a { font-weight: 650; }

/* ---------- formulários ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 4px 18px 18px; }
.card.form { padding: 20px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.form label small { font-weight: 500; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form .lbl { font-size: 13px; font-weight: 600; color: var(--ink2); display: block; margin-bottom: 6px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.check-line { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.check-line input { margin-top: 3px; }
.check-line span { display: flex; flex-direction: column; color: var(--ink); font-weight: 500; }
.check-line b { font-weight: 500; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.wd { cursor: pointer; }
.wd input { position: absolute; opacity: 0; pointer-events: none; }
.wd span { display: grid; place-items: center; width: 46px; height: 34px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500; font-size: 13px; color: var(--ink2); }
.wd input:checked + span { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.wd input:focus-visible + span { outline: 2px solid var(--accent); }
.danger-zone { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.inline-form .grow { flex: 1; min-width: 200px; }
.inline-form input[name=value] { width: 110px; } .inline-form input[name=parts] { width: 80px; }
.form.compact { padding: 12px 0 6px; }
.form .inline, form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings #agendas { grid-column: 1 / -1; }
.settings .card > .form { padding-top: 6px; }
#backup .form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.howto { margin: 0 18px 12px; font-size: 13.5px; color: var(--ink2); background: var(--line2); border-radius: 10px; padding: 8px 12px; }
.howto summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.howto ol { margin: 8px 0; padding-left: 20px; } .howto li { margin: 3px 0; }
.repeat { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.rep-row { display: flex; gap: 8px; align-items: center; }
.rep-row .grow { flex: 1; }
.rep-row .sm-in { width: 190px; }

/* ---------- lista de atividades ---------- */
.card.list > header { border-bottom: 1px solid var(--line2); }
.head-actions { display: flex; gap: 6px; }
.rows { list-style: none; margin: 0; padding: 4px 8px 8px; }
.rows li > a, .rows .row-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.rows li > a:hover { background: var(--line2); }
.rows li + li { border-top: 1px solid var(--line2); }
.rows .rt { font-weight: 400; min-width: 0; overflow-wrap: anywhere; flex: 1; }
.rows .rt small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.rows .rm { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.rows li.paused { opacity: .5; }
.rows.exp .ed { width: 48px; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.rows.exp .ev { font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-admin { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.cat-edit { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.cat-edit summary { display: flex; align-items: center; gap: 9px; padding: 10px 0; cursor: pointer; font-weight: 500; list-style: none; }
.cat-edit summary::-webkit-details-marker { display: none; }
.cat-edit .kind { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.cat-edit .move { display: flex; } .cat-edit .move form { display: inline; }
.cat-edit .form { grid-template-columns: 2fr auto 1.4fr; }
.cat-edit .del { padding-bottom: 12px; }
.cat-edit.new { border-style: dashed; border-left-width: 1px; }

/* ---------- desempenho ---------- */
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 6px 18px 22px; }
.db { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; text-decoration: none; min-width: 0; }
.db i { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: var(--ok); }
.db i.y { background: #eab308; } .db i.r { background: #f87171; } .db i.e { background: var(--line); }
.db span { position: absolute; bottom: -18px; font-size: 10.5px; color: var(--muted); }
.db.today span { color: var(--ink); font-weight: 700; }
.daybars.dense { gap: 2px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13.5px; }
.bars .bl { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.bars .bv { color: var(--ink2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bars .bar { grid-column: 1 / -1; margin: 0; }
ul.bars.pad { padding: 2px 18px 18px; }
.habits { list-style: none; margin: 0; padding: 0; }
.habits li { display: grid; grid-template-columns: 1fr auto 44px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.habits li:first-child { border-top: 0; }
.habits .hn { font-weight: 400; }
.habits .hs { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.dots7 { display: flex; gap: 3px; }
.dots7 i { width: 11px; height: 11px; border-radius: 3px; background: var(--line); }
.dots7 i.y { background: var(--ok); } .dots7 i.n { background: #fca5a5; } .dots7 i.p { background: var(--line); outline: 1.5px dashed var(--muted); outline-offset: -1.5px; } .dots7 i.o { background: transparent; border: 1px solid var(--line2); }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 20px; }
.login p { margin: -6px 0 0; font-size: 14px; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.login input { height: 42px; }
.login .flash { margin: 0; }
.brand.big { margin-bottom: 6px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter { border-top: 1px solid var(--line); } .counter:nth-child(-n+3) { border-top: 0; } .counter:nth-child(3n+1) { border-left: 0; }
  .counters:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar { padding: 8px 14px; gap: 10px; backdrop-filter: none; background: var(--panel); }
  .brand small { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-around; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 0; z-index: 20; }
  .nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 5px 6px; }
  .nav a.on { background: transparent; color: var(--ink); }
  .nav a.on svg { stroke-width: 2; }
  .logout { margin-left: auto; }
  .wrap { padding: 16px 12px 100px; }
  h1 { font-size: 21px; }
  .counters, .counters:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .counter { padding: 12px 14px; border-top: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; }
  .counter:nth-child(odd) { border-left: 0 !important; } .counter:first-child, .counter:nth-child(2) { border-top: 0 !important; }
  .counter strong { font-size: 22px; }
  .quick { flex-wrap: wrap; }
  .quick input[name=title] { flex-basis: 100%; border-color: var(--line); }
  .quick select { flex: 1 1 100%; max-width: none; }
  .quick input[type=date] { flex: 1 1 130px; }
  .quick .btn { flex: 1 1 auto; }
  .col-side { grid-template-columns: 1fr; }
  .form, .cat-edit .form { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .rep-row { flex-wrap: wrap; } .rep-row .sm-in { width: auto; flex: 1; } .rep-row .grow { flex-basis: 100%; order: 3; }
  .chip.toggle { margin-left: 0; }
  .rows li > a { flex-direction: column; align-items: flex-start; } .rows .rm { justify-content: flex-start; }
  .day-nav input[type=date] { width: 140px; }
}

/* ---------- parcelas ---------- */
.tag.parc { background: transparent; color: var(--ink2); border: 1px solid var(--line); }
.parc-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.finished .rt { color: var(--muted); }
details.ended { margin-top: 4px; }
details.ended > summary { cursor: pointer; padding: 14px 18px; font-size: 13.5px; font-weight: 500; color: var(--ink2); list-style: none; }
details.ended > summary::-webkit-details-marker { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 50; transition: all .3s ease; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 84px; } .parc-box { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .counters:has(> :nth-child(4):last-child) .counter { border-top: 0; border-left: 1px solid var(--line); }
  .counters:has(> :nth-child(4):last-child) .counter:nth-child(odd) { border-left: 0; }
  .counters:has(> :nth-child(4):last-child) .counter:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .counter:last-child:nth-child(odd) { grid-column: 1 / -1; } }
