/* Quem leva o quê — app de celular (mobile-first). Uma coluna, barra de abas embaixo, folhas no lugar de janelas. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/nunito-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/nunito-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4f6f2; --card: #ffffff; --ink: #1d2421; --muted: #59645f; --line: #e2e7e0;
  --field: #1f4d3a; --field-2: #163a2c; --brand: #1f4d3a; --brand-dark: #163a2c; --brand-soft: #e3eee8;
  --accent: #f2b134; --accent-ink: #2b2100;
  --ok: #1e6b43; --ok-soft: #e1f2e7; --warn: #7a5208; --warn-soft: #fbefd3; --bad: #a32a2a; --bad-soft: #f9e1e1;
  --info: #29567f; --info-soft: #e2ecf6; --inp: #fbfcfa;
  --radius: 16px; --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 6px 18px rgba(20, 40, 30, .06);
  --tabbar-h: 64px; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --vz-a: #1f8a5b; --vz-k: #e39a00; --vz-track: #dcefe4; --vz-sem: #98a39e;
  --vz-o1: #84c3a0; --vz-o2: #3f9e6e; --vz-o3: #16603f; --vz-o1-ink: #1d2421; --vz-o3-ink: #fff;
  --vz-hover: #f1f4f0; --vz-base: #c9d0cb; --vz-focus: #f2b134;
}
* { box-sizing: border-box; min-width: 0; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) transparent; }
html.big { font-size: 125%; --tabbar-h: 74px; }
html, body { margin: 0; padding: 0; }
body {
  font: 1rem/1.5 "Nunito Sans", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; overflow-x: clip;
  padding-bottom: calc(var(--tabbar-real, 64px) + 24px);
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--brand); text-underline-offset: 3px; }
button, a, select, input, label { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
table { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- barra do topo ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--field); color: #fff; padding: calc(var(--sat) + 10px) 16px 12px; }
.appbar-in, .screen, .tabbar-in { max-width: 600px; margin: 0 auto; }
.appbar-in { display: flex; align-items: center; gap: 12px; }
.ab-title { flex: 1; }
.appbar h1 { font: 400 1.35rem/1.15 "Young Serif", Georgia, serif; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-dates { margin: 2px 0 0; font-size: .9rem; color: #cfe3d7; display: flex; gap: 10px; flex-wrap: wrap; }
.ab-dates span { white-space: nowrap; }
.ab-me { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 .9rem "Nunito Sans", sans-serif; flex: none; cursor: pointer; }
.progress { max-width: 600px; margin: 10px auto 0; }
.pg-text { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; color: #d9eadf; }
.pg-text b { color: #fff; }
.pg-bar { display: flex; gap: 2px; height: 6px; margin-top: 6px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .16); }
.pg-bar i { display: block; height: 100%; }
.pg-bar .g { background: #5fd394; } .pg-bar .y { background: var(--accent); }

/* ---------- telas ---------- */
.screen { padding: 14px 14px 0; }
.tab { display: none; } .tab.active { display: block; animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.screen-title { font: 400 1.5rem/1.15 "Young Serif", Georgia, serif; margin: 6px 2px 12px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card h2 { margin: 0 0 10px; font-size: 1.08rem; }
.card h3 { margin: 16px 0 8px; font-size: .95rem; }
.notice { background: var(--info-soft); color: var(--info); padding: 10px 12px; border-radius: 12px; font-size: .92rem; margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.info-card p { margin: 0 0 6px; }
.info-card .place { font-weight: 700; }

/* ---------- formulários ---------- */
label { display: block; font-size: .86rem; color: var(--muted); margin: 12px 0 5px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfd6cf; border-radius: 12px; font: max(16px, 1rem) "Nunito Sans", sans-serif; background: var(--inp); color: var(--ink); caret-color: var(--brand); appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359645f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 88px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); appearance: auto; -webkit-appearance: auto; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row3 > :first-child { grid-column: 1 / -1; }
.checks, .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label, .seg label { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--inp); cursor: pointer; font-weight: 600; }
.checks label:has(input:checked), .seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: 700 1rem "Nunito Sans", sans-serif; cursor: pointer; text-decoration: none; transition: transform .12s ease-out, filter .12s; }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn.secondary { background: var(--brand-soft); color: var(--brand-dark); }
.btn.alt { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.small { min-height: 48px; padding: 0 16px; font-size: .95rem; border-radius: 12px; }
.btn.block { width: 100%; margin-top: 16px; }
.btn:disabled { opacity: .5; }
.btn svg, .tabbar svg { width: 20px; height: 20px; flex: none; }

/* ---------- listas ---------- */
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .name { font-weight: 700; }
.item .meta { font-size: .94rem; color: var(--muted); margin-top: 2px; }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar i.ok { background: var(--ok); } .bar i.falta { background: var(--bad); }
.pill { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 99px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.pill.falta { background: var(--bad-soft); color: var(--bad); }
.pill.parcial { background: var(--warn-soft); color: var(--warn); }
.pill.ok, .pill.entregue { background: var(--ok-soft); color: var(--ok); }
.pill.excesso, .pill.comprado { background: var(--info-soft); color: var(--info); }
.pill.day, .pill.prometido, .pill.sem { background: #eceff0; color: #4f5a60; }
.cat-title { position: sticky; top: calc(var(--appbar-h, 108px)); z-index: 5; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px -16px 0; padding: 10px 16px 6px; background: var(--card); font-weight: 800; font-size: .95rem; border-bottom: 1px solid var(--line); }
.cat-title:first-child { margin-top: -6px; }
.cat-title small { color: var(--muted); font-weight: 600; font-size: .88rem; }
.calc { font-size: .88rem; color: var(--muted); margin-top: 3px; }
.empty { text-align: center; color: var(--muted); padding: 26px 8px; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 8px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 48px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--inp); color: var(--ink); font: 700 .9rem "Nunito Sans", sans-serif; cursor: pointer; }
.chips button.on { background: var(--field); border-color: var(--field); color: #fff; }
.shop { list-style: none; padding: 0; margin: 0; }
.shop li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.shop li:first-child { border-top: 0; }
.shop li > div { flex: 1; }
.shop li > span { flex: 0 1 auto; max-width: 48%; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.shop-cat { font-weight: 800; margin: 14px 0 2px; font-size: .9rem; color: var(--field); }
.shop-cat:first-child { margin-top: 0; }

/* tabelas viram cartões no celular */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .78rem; }
td select, td input { min-height: 46px; padding: 6px 10px; font-size: .95rem; }
@media (max-width: 640px) {
  table.stack thead, table.stack tr:first-child:has(th) { display: none; }
  table.stack tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: flow-root; border: 0; padding: 3px 0 3px 7.5em; }
  table.stack td::before { content: attr(data-l); float: left; width: 7em; margin-left: -7.5em; color: var(--muted); font-size: .82rem; font-weight: 700; }
  table.stack td:empty { display: none; }
  table.stack td[colspan] { padding-left: 0; }
  table.stack td[colspan]::before { display: none; }
}

/* ---------- barra de abas ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--sab); box-shadow: 0 -4px 16px rgba(20, 40, 30, .06); }
.tabbar-in { display: flex; min-height: var(--tabbar-h); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; min-width: 0; border: 0; background: none; color: var(--muted); font: 700 .8rem/1.1 "Nunito Sans", sans-serif; cursor: pointer; padding: 6px 2px; }
.tabbar button .ic { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 99px; transition: background .18s ease-out; }
.tabbar button.active { color: var(--field); }
.tabbar button.active .ic { background: var(--brand-soft); }
.tabbar svg { width: 24px; height: 24px; }


/* ---------- folhas (bottom sheet) ---------- */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; border: 0; padding: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
dialog.sheet[open] { animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
dialog.sheet::backdrop { background: rgba(15, 25, 20, .45); }
dialog.sheet > form, dialog.sheet > .sheet-body { padding: 8px 18px calc(18px + var(--sab)); margin: 0; box-shadow: none; border-radius: 0; }
dialog.sheet > form::before, dialog.sheet > .sheet-body::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 2px auto 12px; }
dialog.sheet h2 { font: 400 1.3rem/1.2 "Young Serif", Georgia, serif; margin: 0 0 4px; }
.dialog-actions { position: sticky; bottom: calc(-18px - var(--sab)); display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 18px -18px 0; padding: 12px 18px calc(12px + var(--sab)); background: var(--card); border-top: 1px solid var(--line); }
.preview { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin-top: 14px; }
@media (min-width: 640px) {
  dialog.sheet { inset: 0; margin: auto; width: min(560px, 94vw); max-height: 86vh; border-radius: 22px; }
  dialog.sheet[open] { animation: fade .2s ease-out; }
}

/* número de pessoas (gestão) */
.hc-day { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin-top: 10px; }
.hc-day .hc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hc-day .hc-head span { font-size: .8rem; color: var(--muted); }
.hc-day label { margin-top: 8px; }
.hc-day input { text-align: right; font-variant-numeric: tabular-nums; }

/* aviso */
.toast { position: fixed; left: 50%; top: calc(var(--appbar-h, 100px) + 10px); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 1rem; line-height: 1.35; transition: transform .25s ease-out, opacity .25s ease-out; z-index: 50; width: max-content; max-width: min(92vw, 560px); text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.err { background: var(--bad); }

/* instalar */
.install { display: flex; gap: 12px; align-items: center; }
.install .txt { flex: 1; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- gráficos ---------- */
.vz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.vz-grid > .card { margin: 0; }
.vz-card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.vz-card .vz-sub { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.vz-seg { display: flex; gap: 2px; height: 28px; }
.vz-block { min-width: 3px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: visible; cursor: default; }
.vz-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink); }
.vz-legend li { display: flex; align-items: center; gap: 6px; }
.vz-legend span { color: var(--muted); }
.vz-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.st-ok { background: #0aac23; } .st-par { background: #fbb315; } .st-falta { background: #dc3c3d; } .st-sem { background: var(--vz-sem); }
.o1 { background: var(--vz-o1); } .o2 { background: var(--vz-o2); } .o3 { background: var(--vz-o3); }
.vz-meters { display: grid; gap: 4px; }
.vz-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; padding: 6px 6px; border-radius: 8px; }
.vz-mrow:hover, .vz-mrow:focus-visible { background: var(--vz-hover); }
.vz-mname { grid-row: 1; grid-column: 1; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--vz-track); overflow: hidden; }
.vz-track i { display: block; height: 100%; border-radius: 99px; background: var(--vz-a); }
.vz-mval { grid-row: 1; grid-column: 2; font-size: .85rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vz-mval span { color: var(--muted); }
.vz-cols { display: flex; justify-content: space-around; align-items: flex-end; border-bottom: 1px solid var(--vz-base); padding: 0 4px; }
.vz-col { display: grid; justify-items: center; flex: 1; padding: 4px 0 0; border-radius: 8px; }
.vz-col:hover, .vz-col:focus-visible { background: var(--vz-hover); }
.vz-colplot { height: 150px; width: 100%; display: flex; justify-content: center; }
.vz-stack { height: 100%; width: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.vz-stack i { display: block; width: 24px; min-height: 2px; }
.vz-stack i:first-of-type { border-radius: 4px 4px 0 0; }
.vz-tot { font-size: .9rem; font-weight: 700; text-align: center; margin-bottom: 2px; width: 60px; margin-left: -18px; }
.vz-a { background: var(--vz-a); } .vz-k { background: var(--vz-k); }
.vz-collabel { font-size: .85rem; font-weight: 700; margin-top: 8px; }
.vz-colsub { font-size: .78rem; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.vz-cols + .vz-legend { margin-top: 12px; }
.vz-empty { color: var(--muted); font-size: .9rem; padding: 10px 0; }
.vz-tip { position: fixed; z-index: 60; display: none; max-width: min(320px, 90vw); background: var(--ink); color: var(--card); padding: 8px 10px; border-radius: 8px; font-size: .82rem; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
[data-tip]:focus-visible { outline: 3px solid var(--vz-focus); outline-offset: 2px; }
.vz-group { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 800; color: var(--field); margin: 14px 6px 2px; }
.vz-group:first-child { margin-top: 0; }
.vz-group span { color: var(--muted); font-weight: 600; }
.vz-more { font-size: .8rem; color: var(--muted); padding: 0 6px 4px; }
@media print {
  .appbar, .tabbar, .fab, .screen-title, .vz-grid, #tab-visao > .card:not(:first-of-type), #tab-visao .row { display: none !important; }
  body { padding: 0; background: #fff; } #tab-visao > .card:first-of-type { box-shadow: none; padding: 0; }
}

/* ---------- acessibilidade e uso por idosos ---------- */
html.big input, html.big select, html.big textarea { font-size: 1rem; }
.ab-big { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; font: 800 1rem/1 "Nunito Sans", sans-serif; flex: none; cursor: pointer; }
.ab-big span span { font-size: 1.3em; }
.ab-big[aria-pressed="true"] { background: #fff; color: var(--field); border-color: #fff; }
/* topo encolhe ao rolar */
.appbar, .appbar h1 { transition: padding .2s ease-out, font-size .2s ease-out; }
body.scrolled .appbar { padding-top: calc(var(--sat) + 6px); padding-bottom: 8px; }
body.scrolled .appbar h1 { font-size: 1.1rem; }
body.scrolled .ab-dates, body.scrolled .pg-text { display: none; }
body.scrolled .progress { margin-top: 6px; }
/* botões – + */
.stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.stepper input { text-align: center; font-weight: 800; font-size: max(18px, 1.15rem); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-btn { height: 52px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); font: 800 1.6rem/1 "Nunito Sans", sans-serif; cursor: pointer; }
.st-btn:active { transform: scale(.95); }
.claim-need { font-size: 1.05rem; margin: 6px 0 2px; }
.claim-need b { font-size: 1.15rem; }
.warn-text { color: var(--warn); font-weight: 700; }
/* dica de primeiro uso */
.tip { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.tip p { margin: 0; font-size: 1rem; }
.tip .btn { justify-self: start; background: rgba(255, 255, 255, .6); border-color: transparent; color: var(--accent-ink); }
/* comprei */
.buy { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--inp); color: var(--ink); font: 800 .95rem "Nunito Sans", sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.buy[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.buy .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid currentColor; display: grid; place-items: center; font-size: .8rem; }
.my-item { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.my-item:first-child { border-top: 0; }
.my-item .row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wa { background: #1f8a4c; color: #fff; }
/* números com – e + ocupam a linha toda (no cadastro ficavam espremidos) */
.row:has(.stepper) { grid-template-columns: minmax(0, 1fr); gap: 0; }

/* botões que se empilham sozinhos quando a letra fica grande */
.auto-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.stack-actions { display: grid; gap: 10px; margin-top: 16px; }
.stack-actions .btn { width: 100%; min-height: 52px; text-align: center; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.btn { text-align: center; line-height: 1.2; }
.dialog-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }

/* tamanhos que acompanham a letra do celular (evita sobreposição com letra grande) */
.ab-big, .ab-me { width: auto; height: auto; min-width: 44px; min-height: 44px; padding: .3em .5em; font-size: .85rem; border-radius: 999px; line-height: 1; }
.appbar-in { gap: 8px; }
.ab-title { flex: 1 1 auto; }
.avatar { width: 2.6rem; height: 2.6rem; min-width: 40px; min-height: 40px; font-size: .9rem; }
.tabbar button { padding: 6px 3px; }
.tabbar button .ic { width: min(56px, 100%); }
/* "Eu levo" fica numa linha própria embaixo do item: texto com a largura toda e botão fácil de acertar */
#needs-list .item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
#needs-list .item .actions { justify-content: flex-start; }
#needs-list .item .actions .btn { min-width: 9rem; }

/* folha "Eu levo": uma pergunta por bloco, nada de campo sobrando */
.claim-cat { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#dlg-claim h2 { font-size: 1.6rem; margin: 2px 0 12px; overflow-wrap: anywhere; }
.claim-status { background: var(--bg, #f6f4ee); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.claim-status p { margin: 0; }
.claim-status .cs-main { font-size: 1.1rem; }
.claim-status .bar { margin: 10px 0 8px; height: 8px; }
.claim-status .cs-sub { font-size: .9rem; color: var(--muted); }
.claim-step { margin-top: 20px; }
.claim-step h3 { margin: 0 0 10px; font: 800 1.05rem/1.2 "Nunito Sans", sans-serif; }
.claim-unit { margin: 6px 0 0; text-align: center; font-weight: 700; color: var(--muted); }
#c-all { margin-top: 12px; width: 100%; min-height: 48px; height: auto; padding: 10px 14px; line-height: 1.25; }
#c-hint { margin: 10px 0 0; }
#c-hint:empty { display: none; }
.claim-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 8px; }
.claim-days label { justify-content: center; min-height: 52px; border-radius: 14px; padding: 6px 10px; text-align: center; }
.claim-days input { position: absolute; opacity: 0; pointer-events: none; }
.claim-days label:has(input:checked) { background: var(--field); border-color: var(--field); color: #fff; }
.claim-days label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.claim-more { margin-top: 18px; }
.claim-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); list-style: none; }
.claim-more summary::-webkit-details-marker { display: none; }
.claim-more summary::before { content: "+"; font-size: 1.3rem; line-height: 1; width: 1.2em; }
.claim-more[open] summary::before { content: "−"; }
.claim-more input { margin-top: 6px; }
#c-ok { height: auto; min-height: 52px; padding: 10px 14px; line-height: 1.25; }
.claim-days label { font-size: 1rem; }
.claim-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.claim-days label { overflow-wrap: anywhere; line-height: 1.2; }
.claim-more summary { flex-wrap: wrap; }
.claim-more summary { display: block; padding: 10px 0; line-height: 1.3; }
.claim-more summary::before { display: inline-block; width: 1.1em; }
