/* Meus Plantões — produto B1 (base: identidade G2/G2.1 congelada em 23/10/2026; tokens, componentes e navegação inalterados)
   Layout: uma coluna, iPhone; escala tipográfica do iOS (11–34 pt); fonte do sistema (SF Pro) com Inter como apoio fora do iOS.
   Cor: duas identidades completas (claro/escuro); acento único e calmo; vermelho só para atrasado e apagar. */
@font-face { font-family: "Inter"; src: url(fonts/inter-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --bg: #FFFFFF; --bg-grouped: #F2F2F7; --cell: #FFFFFF;
  --fill: #F2F2F7; --fill2: #E5E5EA; --fill3: #D1D1D6; --seg-on: #FFFFFF;
  --sep: rgba(60, 60, 67, .24);
  --label: #111214; --label2: #6D6D72; --label3: #8E8E93; --on-accent: #FFFFFF;
  --accent: #2A62BC; --accent-soft: rgba(42, 98, 188, .12);
  --ok: #27704A; --ok-soft: rgba(39, 112, 74, .12);
  --late: #B83A28; --late-soft: rgba(184, 58, 40, .10); --danger: #B83A28;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .10);
  --sb: 47px; --tab: 64px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-grouped: #000000; --cell: #1C1C1E;
  --fill: #1C1C1E; --fill2: #2C2C2E; --fill3: #3A3A3C; --seg-on: #636366;
  --sep: rgba(84, 84, 88, .6);
  --label: #F5F5F7; --label2: #A1A1A6; --label3: #6B6B70; --on-accent: #0B1220;
  --accent: #6FA8FF; --accent-soft: rgba(111, 168, 255, .16);
  --ok: #5DD39A; --ok-soft: rgba(93, 211, 154, .14);
  --late: #FF7A6E; --late-soft: rgba(255, 122, 110, .14); --danger: #FF6B5E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--label); font: 17px/22px var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.grouped { background: var(--bg-grouped); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg { flex: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- moldura ---------- */
.app { max-width: 430px; margin: 0 auto; min-height: 100dvh; position: relative; }
.sb { height: var(--sb); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 9px; font-size: 15px; font-weight: 600; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
body.artifact .sb { display: none; }
main { padding-bottom: calc(var(--tab) + 36px + env(safe-area-inset-bottom)); outline: none; }

/* ---------- cabeçalho ---------- */
.nav { height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; }
.nav .l { justify-self: start; display: flex; gap: 6px; } .nav .r { justify-self: end; display: flex; gap: 6px; }
.nav h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-align: center; }
.nav h1.month { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.circ { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fill); color: var(--label); display: grid; place-items: center; }
.circ.s { width: 36px; height: 36px; }
.pillb { height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--fill); color: var(--label); font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; }
.textb { height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent); font-size: 17px; }
.textb.b { font-weight: 600; } .textb:disabled { color: var(--label3); }
.lt { padding: 6px 20px 0; }
.lt h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 34px; }
.lt p { margin: 2px 0 0; font-size: 15px; color: var(--label2); }

/* ---------- calendário ---------- */
.cal { padding: 2px 8px 0; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 600; color: var(--label2); letter-spacing: .03em; padding: 4px 0 4px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; touch-action: pan-y; }
.day { height: 60px; border: 0; background: none; padding: 5px 0 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--label); border-radius: 12px; }
.day .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; letter-spacing: -.01em; }
.day.other .n { color: var(--label3); }
.day.today .n { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.day.sel:not(.today) .n { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 600; }
.dots { display: flex; gap: 4px; height: 7px; align-items: center; }
/* opção "Siglas no calendário": etiquetas curtas no lugar dos pontos (Ajustes → Calendário) */
.grid.siglas .day { height: auto; min-height: 78px; justify-content: flex-start; }
.sgs { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 2px; }
.sgs i { font-style: normal; font-size: 11px; font-weight: 700; line-height: 15px; border-radius: 3px; padding: 0 3px; text-align: left; color: var(--label); background: color-mix(in srgb, var(--pc) 24%, transparent); border-left: 3px solid var(--pc); white-space: nowrap; overflow: hidden; letter-spacing: -.01em; }
.sgs em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--label2); padding-left: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--pc); }
.dots i.night { width: 6px; height: 6px; border-radius: 50%; }
.dots em { font-style: normal; font-size: 11px; line-height: 7px; color: var(--label2); font-weight: 600; }
.legend { display: flex; gap: 14px; padding: 10px 20px 0; font-size: 12px; color: var(--label2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.legend::-webkit-scrollbar { display: none; }
.legend span { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }

.dayhead { display: flex; flex-direction: column; gap: 1px; padding: 14px 20px 2px; }
.dayhead h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dayhead .sub { font-size: 13px; color: var(--label2); }
.empty { padding: 18px 20px; color: var(--label2); font-size: 15px; }

/* ---------- linhas de plantão (lista do dia, pagamentos) ---------- */
.rows { list-style: none; margin: 0; padding: 0 0 0 20px; }
.row { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; min-height: 72px; padding: 12px 10px 12px 0; border-bottom: .5px solid var(--sep); width: 100%; background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left; color: var(--label); }
.rows li:last-child .row { border-bottom: 0; }
.bar { width: 6px; height: 40px; border-radius: 3px; background: var(--pc); }
.row .info { display: flex; flex-direction: column; min-width: 0; }
.row .right { display: flex; flex-direction: column; align-items: flex-end; }
.when { font-size: 13px; color: var(--label2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.when .mo { color: var(--accent); }
.ttl { display: block; font-size: 17px; font-weight: 600; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where { display: block; font-size: 15px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where .sg { font-weight: 600; color: var(--label); }
.amt { font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st { font-size: 13px; margin-top: 4px; display: flex; gap: 4px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.st.ok { color: var(--ok); } .st.late { color: var(--late); font-weight: 600; } .st.pend { color: var(--label2); }
.chev { color: var(--label3); }
/* G2.1 · I1 reveal direto: a superfície [data-swipe] desliza sobre o plano das ações; repouso = linha G2 + "⋯" */
.rows li[data-shift] { position: relative; }
.sws { position: relative; z-index: 1; display: flex; align-items: center; background: var(--bg); border-bottom: .5px solid var(--sep); touch-action: pan-y; -webkit-user-select: none; user-select: none;
  margin-left: max(0px, var(--x, 0px)); margin-right: max(0px, calc(var(--x, 0px) * -1)); }
.rows li:last-child .sws { border-bottom: 0; }
.sws .row { flex: 1; min-width: 0; border-bottom: 0; padding-right: 0; }
.mbtn { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--label2); display: grid; place-items: center; }
.act { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--on-accent); visibility: hidden; }
.act.pay, .act.unpay { right: 0; width: max(96px, calc(var(--x, 0px) * -1)); background: var(--ok); }
.act.unpay { background: var(--fill2); color: var(--label); }
.act.rm { left: 0; width: max(96px, var(--x, 0px)); background: var(--danger); }
li[data-side="pay"] .act.pay, li[data-side="pay"] .act.unpay, li[data-side="delete"] .act.rm { visibility: visible; }
li.sl .when { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
li.sl .when > span + span { display: none; } /* aberta: só o horário, nada além da tela */
li.sl .right { min-width: 0; overflow: hidden; }
li.sl .sws .row { grid-template-columns: 6px minmax(0, 1fr) auto; } li.sl .chev { display: none; } /* aberta, tocar só fecha: a seta sai e o título ganha espaço */

/* ---------- detalhes ---------- */
.detail { padding: 6px 20px 0; }
.hd { display: flex; gap: 14px; align-items: center; margin: 12px 0 16px; }
.hd .bar { height: 54px; width: 5px; }
.hd h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 34px; }
.meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--label2); padding-bottom: 16px; }
.meta .d { font-size: 17px; font-weight: 600; color: var(--label); display: flex; gap: 8px; align-items: center; }
.meta .d svg { color: var(--label2); }
.sect { border-top: .5px solid var(--sep); padding: 12px 0; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; }
.kv .k { display: flex; gap: 10px; align-items: center; color: var(--label); }
.kv .k svg { color: var(--label2); }
.kv .v { color: var(--label2); text-align: right; font-variant-numeric: tabular-nums; }
.kv .v.strong { color: var(--label); }
.kv .v.ok { color: var(--ok); } .kv .v.late { color: var(--late); font-weight: 600; }
.note { font-size: 13px; color: var(--label2); margin: 2px 0 0; line-height: 18px; }
.obs { font-size: 17px; color: var(--label2); margin: 6px 0 0; white-space: pre-wrap; }
/* toggle: desenho nativo de 51×31 dentro de um alvo de 51×44 */
.sw { width: 51px; height: 44px; background: none; position: relative; border: 0; flex: none; padding: 0; }
.sw::before { content: ""; position: absolute; left: 0; top: 6.5px; width: 51px; height: 31px; border-radius: 999px; background: var(--fill3); transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 8.5px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: left .2s; }
.sw[aria-checked="true"]::before { background: var(--ok); } .sw[aria-checked="true"]::after { left: 22px; }
.del { display: block; width: 100%; text-align: center; color: var(--danger); font-size: 17px; background: none; border: 0; padding: 16px; margin-top: 12px; } /* G2.1: com 36 px o botão ficava sob a barra de abas flutuante e o toque caía em "Pagamentos" */
.datein { border: 0; background: var(--fill); border-radius: 10px; padding: 0 10px; min-height: 44px; font-size: 15px; color: var(--label); }

/* ---------- formulários e listas agrupadas ---------- */
.gl { padding: 0 16px 24px; }
.ghead { font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: .04em; padding: 20px 16px 6px; }
.group { background: var(--cell); border-radius: 12px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 16px; border-top: .5px solid var(--sep); color: var(--label); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font-size: 17px; }
.group > :first-child { border-top: 0; }
.cell .k { flex: none; display: flex; gap: 10px; align-items: center; }
.cell .k .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.cell .v { margin-left: auto; color: var(--label2); text-align: right; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.cell .v .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.cell input:not([type="checkbox"]), .cell select { margin-left: auto; min-width: 0; flex: 1; border: 0; background: none; text-align: right; padding: 8px 0; font-size: 17px; color: var(--label); }
.cell input::placeholder { color: var(--label3); }
.cell select { appearance: none; -webkit-appearance: none; direction: rtl; }
.cell .v select, .cell .v input { flex: none; width: auto; margin-left: 0; }
.cell input[type="date"] { flex: none; width: 156px; }
.cell input[type="time"] { flex: none; width: 96px; }
.cell.plain input { margin-left: 0; text-align: left; }
.tagp { display: inline-flex; align-items: center; gap: 8px; }
.tagp .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.cell textarea { width: 100%; border: 0; background: none; padding: 10px 0; resize: vertical; min-height: 44px; font-size: 17px; }
.cell.col { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.cell.col .k { font-size: 13px; color: var(--label2); }
.cell .chev { margin-left: 2px; }
.gfoot { font-size: 13px; color: var(--label2); padding: 6px 16px 0; line-height: 18px; }
.gfoot.night { color: var(--accent); }
.gfoot.warn { color: var(--late); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; } /* quebra de linha: nenhum chip cortado */
.chip { flex: none; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--cell); border: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--label); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] i { background: var(--on-accent); }
.chip[aria-pressed="true"]::after { content: "✓"; font-weight: 700; margin-left: 2px; } /* selecionado: cor + símbolo */
.chip.s { height: 44px; font-size: 14px; padding: 0 12px; background: var(--fill); }
.chip.s[aria-pressed="true"] { background: var(--accent); }
.seg { display: flex; background: var(--fill2); border-radius: 12px; padding: 0; } /* cada botão com 44 px de toque */
.seg button { flex: 1; height: 44px; border: 0; background: none; border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--label); box-shadow: inset 0 0 0 3px var(--fill2); }
.seg [aria-pressed="true"] { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.cell .seg { margin-left: auto; width: 60%; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: .5px solid var(--sep); cursor: pointer; }
.radio input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--fill3); margin: 1px 0 0; flex: none; }
.radio input:checked { border: 7px solid var(--accent); }
.radio b { display: block; font-size: 17px; font-weight: 500; }
.radio small { display: block; font-size: 13px; color: var(--label2); margin-top: 1px; }
.radio.dis { opacity: .55; }
.savebar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 16px 0 0; }
.btn { height: 50px; border-radius: 12px; border: 0; font-size: 17px; font-weight: 600; background: var(--fill2); color: var(--label); width: 100%; }
.btn.p { background: var(--accent); color: var(--on-accent); }
.btn.p:disabled { opacity: .45; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.status-line { font-size: 13px; color: var(--label2); padding: 12px 4px 0; display: flex; gap: 6px; align-items: center; }
.status-line.ok { color: var(--ok); } .status-line.warn { color: var(--late); }

/* ---------- pagamentos ---------- */
.pg { padding: 0 20px; }
.mon { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px; }
.mon h2 { margin: 0; font-size: 17px; font-weight: 600; }
.hero { padding: 16px 0 6px; }
.hero .lab { font-size: 15px; color: var(--label2); }
.hero .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 41px; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.hero .cap { font-size: 15px; color: var(--label2); margin-top: 2px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.split div { font-size: 13px; color: var(--label2); }
.split b { display: block; font-size: 20px; font-weight: 600; color: var(--label); font-variant-numeric: tabular-nums; margin-top: 2px; }
.split .ok b { color: var(--ok); }
.bar2 { height: 4px; border-radius: 2px; background: var(--fill2); margin-top: 14px; overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--ok); }
.late-box { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--late-soft); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; }
.late-box .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--late); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.late-box b { display: block; font-size: 15px; color: var(--late); }
.late-box small { font-size: 13px; color: var(--label2); }
.late-box .textb { font-weight: 600; }
.sec h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 600; margin: 22px 0 2px; }
.sec h2 span { font-size: 13px; color: var(--label2); font-weight: 400; }
.pg .rows { padding-left: 0; }
.pg .row { grid-template-columns: 6px minmax(0, 1fr) auto; padding-right: 0; }
.row.place { min-height: 60px; }
.row.place .where { white-space: normal; }
.more { background: none; border: 0; color: var(--accent); font-size: 15px; padding: 12px 0; width: 100%; text-align: left; }

/* ---------- série ---------- */
.series-hd { display: flex; gap: 14px; align-items: center; padding: 10px 20px 0; }
.series-hd .bar { height: 44px; }
.series-hd h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.series-hd p { margin: 2px 0 0; font-size: 15px; color: var(--label2); }
.mlabel { font-size: 13px; color: var(--label2); text-transform: uppercase; letter-spacing: .04em; padding: 18px 20px 4px; }
.occ { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 8px 20px 8px 0; margin-left: 20px; border-bottom: .5px solid var(--sep); width: calc(100% - 20px); background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left; color: var(--label); font-size: 15px; }
.occ .d { font-weight: 600; } .occ .d.past { color: var(--label2); font-weight: 400; }
.occ .t { color: var(--label2); } .occ .t b { color: var(--label); font-weight: 500; }
.occ .tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.occ .tag.ok { background: var(--ok-soft); color: var(--ok); }
.occ.skip .d, .occ.skip .t { color: var(--label3); text-decoration: line-through; }
.occ.skip .textb { font-size: 15px; }

/* ---------- barra de abas, aviso, folha ---------- */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(100% - 24px, 406px); height: var(--tab); background: var(--fill); border-radius: 32px; display: flex; padding: 6px; box-shadow: var(--shadow); z-index: 20; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 26px; color: var(--label2); font-size: 11px; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--fill2); color: var(--accent); }
body.noframe .tabs { display: none; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + 22px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); width: max-content; background: var(--label); color: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); z-index: 25; }
.toast button { background: none; border: 0; color: var(--bg); font-weight: 700; font-size: 14px; padding: 0 6px; min-height: 44px; min-width: 44px; }
.dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 30; }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(100%, 430px); max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--cell); border-radius: 20px 20px 0 0; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); z-index: 31; box-shadow: var(--shadow); }
.sheet .handle { width: 36px; height: 5px; border-radius: 3px; background: var(--fill3); margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 2px; font-size: 20px; font-weight: 600; }
.sheet .sub { font-size: 15px; color: var(--label2); margin: 0 0 8px; }
.sheet .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.sheet .three label { font-size: 13px; color: var(--label2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheet .three input { border: 0; background: var(--fill); border-radius: 10px; padding: 0 10px; height: 44px; font-size: 17px; color: var(--label); width: 100%; min-width: 0; }
.sheet .radio { padding-left: 0; padding-right: 0; }
.mlist { background: var(--bg-grouped); border-radius: 12px; overflow: hidden; margin: 8px 0 10px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-top: .5px solid var(--sep); background: none; color: var(--label); font-size: 17px; text-align: left; }
.mi:first-child { border-top: 0; }
.mi svg { color: var(--label2); }
.mi.danger, .mi.danger svg { color: var(--danger); }
/* alerta compacto no estilo do iOS: título, uma linha, Cancelar / Apagar */
.alert { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 48px)); background: var(--cell); border-radius: 14px; overflow: hidden; text-align: center; z-index: 31; }
.alert h2 { margin: 0; padding: 20px 16px 4px; font-size: 17px; font-weight: 600; line-height: 22px; }
.alert p { margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 18px; color: var(--label2); }
.alert .radio { text-align: left; }
.aacts { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--sep); }
.aacts button { min-height: 48px; border: 0; background: none; font-size: 17px; color: var(--accent); }
.aacts button + button { border-left: .5px solid var(--sep); }
.aacts .danger { color: var(--danger); font-weight: 600; }
.lock { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--label2); margin: 8px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up .22s ease-out; } .toast { animation: up .18s ease-out; }
  .sws { transition: margin .2s ease-out; } li.drag .sws { transition: none; }
  @keyframes up { from { transform: translate(-50%, 16px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }

/* integração G2.1 (fiscal): a 320 px as sete células do calendário precisam de ≥ 44 px — sem a margem lateral de 8 px, 320/7 = 45,7 px */
@media (max-width: 359px) { .cal { padding-left: 0; padding-right: 0; } }

/* F02: zona gestual do calendário (separada da lista): acompanha o dedo de forma contida e desliza ao trocar de mês */
.cal { touch-action: pan-y; transform: translateX(var(--cx, 0px)); transition: transform .15s ease-out; } .cal.drag { transition: none; }
@keyframes slide-next { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes slide-prev { from { transform: translateX(-24px); opacity: .6; } to { transform: none; opacity: 1; } }
.cal.slide-next { animation: slide-next .22s ease-out; } .cal.slide-prev { animation: slide-prev .22s ease-out; }
/* botões "Mês anterior"/"Próximo mês" só para leitor de tela e teclado (alternativa acessível ao gesto); aparecem ao receber foco */
.srb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; background: var(--fill); color: var(--label); font-size: 22px; }
.srb:focus-visible { position: static; width: 44px; height: 44px; clip: auto; overflow: visible; border-radius: 22px; }
/* F01: linha recém-criada em destaque breve ao voltar ao dia */
@keyframes flash { 0%, 45% { background-color: var(--accent-soft); } 100% { background-color: transparent; } }
li.flash .row { animation: flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .cal, .cal.slide-next, .cal.slide-prev { transition: none; animation: none; transform: none; } li.flash .row { animation: none; background-color: var(--accent-soft); } }

/* ---------- B1: produto ---------- */
.app { padding-top: env(safe-area-inset-top); } /* sem barra de status desenhada: o aparelho tem a dele */
.cell.danger, .cell.danger .k { color: var(--danger); }
.cell.accent { color: var(--accent); }
.cell .v.ok { color: var(--ok); } .cell .v.late { color: var(--late); }
.cell .v.wrap { white-space: normal; text-align: right; }
.cell input[type="number"] { flex: none; width: 72px; }
.cell input.short { flex: none; width: 72px; text-transform: uppercase; }
.gl .first { background: var(--cell); border-radius: 12px; padding: 16px; margin-top: 16px; }
.gl .first h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.gl .first p { margin: 0 0 12px; font-size: 15px; color: var(--label2); line-height: 20px; }
.gl .first .acts { grid-template-columns: 1fr; margin-top: 0; }
.imp { list-style: none; margin: 0; padding: 0; }
.imp li { display: flex; gap: 12px; justify-content: space-between; min-height: 44px; padding: 8px 16px; border-top: .5px solid var(--sep); font-size: 15px; }
.imp li:first-child { border-top: 0; }
.imp li small { color: var(--label2); }
.imp .n { font-weight: 600; flex: none; }
.cell .badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.cell .badge.warn { background: var(--late-soft); color: var(--late); }
.cell .badge.ok { background: var(--ok-soft); color: var(--ok); }
.toast .act2 { color: var(--bg); font-weight: 700; text-decoration: underline; }
.rows li.plain .row { grid-template-columns: 6px minmax(0, 1fr) auto; padding-right: 0; }
.rows li.plain { display: flex; align-items: center; gap: 8px; }
.rows li.plain .row { flex: 1; min-width: 0; }
.priv p { font-size: 15px; line-height: 21px; color: var(--label2); margin: 8px 0; }

.toast button { white-space: nowrap; }
