/* Sobrou Tempo! · marca do Sobrou! em versão clara: verde-folha claro + dourado do símbolo, títulos com serifa */
:root {
  --bg: #F3F7F0; --surface: #FFFFFF; --surface-2: #F6F9F3; --ink: #13281F; --muted: #6E8179; --line: #E2EADD;
  --accent: #4FAE7E; --accent-ink: #FFFFFF; --accent-text: #2F8A5E; --accent-soft: #E5F3EA;
  --gold: #D4AF37; --gold-2: #A9851A; --gold-soft: #FBF5DF; --frame: #1F5C46;
  --c-kids: #E3A93A; --c-study: #5AA6DB; --c-work: #3BA59A; --c-health: #4FAE7E; --c-home: #E07A55; --c-self: #C98BB4;
  --ok: #3E9B6E; --alerta: #D9623B;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px; --topo: env(safe-area-inset-top, 0px); --base: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); }
body.travado { overflow: hidden; }
a { color: var(--accent-text); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; color: var(--frame); }
h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
p { margin: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.centro { text-align: center; }
.pad { padding: 12px 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.eyebrow.claro { color: #fff; opacity: .9; }
.grande { font-family: var(--display); font-size: 27px; color: var(--frame); }
.medio { font-size: 18px; }
.txt { display: flex; flex-direction: column; gap: 1px; text-align: left; width: 100%; }

/* ---- Estrutura ---- */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--topo)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: rgba(243, 247, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topo h1 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca { font: 700 21px var(--display); color: var(--frame); }
.marca span { color: var(--gold-2); }
.marca.grande { font-size: 40px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); flex: none; color: var(--ink); }
.icon-btn.peq { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); }
.icon-btn.peq .ico { width: 16px; height: 16px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 16px var(--display); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); flex: none; }
.pagina { max-width: 640px; margin: 0 auto; padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(110px + var(--base)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; }
.pagina.solo { padding-top: calc(28px + var(--topo)); max-width: 480px; }

.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: flex-end; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 0 max(6px, env(safe-area-inset-right, 0px)) var(--base) max(6px, env(safe-area-inset-left, 0px)); }
.abas a { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.abas a.on { color: var(--accent-text); }
.abas .ico { width: 23px; height: 23px; }
.aba-clara .orb { width: 54px; height: 54px; margin-top: -22px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(145deg, #EBCB5C, var(--gold)); color: var(--frame); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(201, 162, 39, .4); }
.aba-clara.on { color: var(--gold-2) !important; }

/* ---- Botões e selos ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; align-self: flex-start; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ouro { background: linear-gradient(145deg, #EBCB5C, var(--gold)); color: var(--frame); }
.btn.peq { padding: 7px 12px; font-size: 13px; }
.btn.grande { width: 100%; padding: 14px; font-size: 16px; align-self: stretch; }
.btn.perigo { color: var(--alerta); }
.btn .ico { width: 18px; height: 18px; }
.link { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.linha-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; flex: none; }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.ouro { color: var(--gold-2); border-color: currentColor; background: var(--gold-soft); }
.pill.alerta { color: var(--alerta); border-color: currentColor; }

/* ---- Cartões e listas ---- */
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-h h2 { font-size: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card.row, .row { flex-direction: row; align-items: center; gap: 12px; display: flex; }
.row.fim { align-items: flex-end; margin-top: 10px; }
.dir { text-align: right; }
.card.lista { padding: 2px 14px; gap: 0; }
.lista { display: flex; flex-direction: column; }
.vazio { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.box { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: .15s; }
.box .ico { width: 15px; height: 15px; }
.check.done .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check.done .lbl { text-decoration: line-through; color: var(--muted); }
.check .meta { font-size: 12px; color: var(--muted); }
.dotc { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.linha-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.linha-item:last-child { border-bottom: 0; }
.linha-item b { display: block; }
.prog { height: 7px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.prog i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.kpi b { font-family: var(--display); font-size: 20px; color: var(--frame); }
.kpi span { font-size: 11px; color: var(--muted); font-weight: 600; }
.ic-q { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); flex: none; }

.hello { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.hello h2 { font-size: 28px; line-height: 1.1; }
.hello p { color: var(--muted); }

.clara-card { background: linear-gradient(150deg, var(--gold-soft), var(--accent-soft)); border: 1px solid rgba(212, 175, 55, .35); border-radius: 20px; padding: 14px; display: flex; gap: 12px; }
.clara-card p { margin: 2px 0 10px; font-size: 14px; }
.clara-card b { font-family: var(--display); color: var(--frame); }
.clara-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(145deg, #EBCB5C, var(--gold)); display: grid; place-items: center; color: var(--frame); font: 700 17px var(--display); }

.next-ev { display: flex; flex-direction: row; gap: 12px; align-items: stretch; text-align: left; width: 100%; }
.next-ev .bar { width: 4px; border-radius: 4px; background: var(--c); }
.next-ev b { display: block; }
.grid-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.mod { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15; color: var(--ink); }
.mod .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); }
.mod .ic .ico { width: 24px; height: 24px; }
.list-mods { display: flex; flex-direction: column; gap: 8px; }
.lmod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; color: var(--ink); }
.lmod .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); flex: none; }
.lmod b { display: block; font-size: 15px; }
.lmod span:not(.ic):not(.pill) { font-size: 12.5px; color: var(--muted); }
.lmod .grow span { display: block; }
.seta { color: var(--muted); width: 18px; height: 18px; }

/* ---- Hábitos ---- */
.hab { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); font-size: 11px; font-weight: 700; }
.ring i { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-style: normal; }
.week { display: flex; gap: 4px; margin-top: 6px; }
.week button { width: 22px; height: 22px; border-radius: 7px; background: var(--line); font-size: 10px; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.week button.y { background: var(--c); color: #fff; }
.week button.hj { box-shadow: 0 0 0 2px var(--gold); }
.tick { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.tick.on { background: var(--c); border-color: var(--c); color: #fff; }

/* ---- Calendário ---- */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.seg button.on { background: var(--accent); color: #fff; }
.nav-per { display: flex; align-items: center; gap: 8px; }
.nav-per b { flex: 1; text-align: center; font-family: var(--display); font-size: 17px; color: var(--frame); }
.nav-per b::first-letter { text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.wstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; border-radius: 14px; font-size: 11px; color: var(--muted); font-weight: 600; }
.wd b { font: 700 17px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.wd.hj b { color: var(--gold-2); }
.wd.on { background: var(--accent); color: #fff; }
.wd.on b { color: #fff; }
.wd .dots { display: flex; gap: 2px; height: 5px; }
.wd .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.dia-int { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-dia, .chip-dia:visited { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); }
.tl { position: relative; background: var(--surface); border-radius: 14px; }
.hr { height: 52px; border-top: 1px solid var(--line); position: relative; }
.hr span { position: absolute; top: -8px; left: 4px; font-size: 10.5px; color: var(--muted); background: var(--surface); padding-right: 6px; font-variant-numeric: tabular-nums; }
.ev { position: absolute; border-radius: 9px; padding: 4px 7px; overflow: hidden; font-size: 12px; line-height: 1.25; text-align: left; background: color-mix(in srgb, var(--c) 20%, var(--surface)); border-left: 3px solid var(--c); color: var(--ink); z-index: 1; }
.ev b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--muted); font-size: 11px; }
.now { position: absolute; right: 0; height: 2px; background: var(--alerta); z-index: 3; pointer-events: none; }
.now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--alerta); }
.sem-cab, .sem-corpo { display: grid; grid-template-columns: 22px repeat(7, minmax(0, 1fr)); gap: 2px; }
.sem-cab { position: sticky; top: calc(56px + var(--topo)); z-index: 5; background: var(--bg); padding: 4px 0; }
.sem-cab button { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.sem-cab b { font: 700 15px var(--display); color: var(--ink); }
.sem-cab .hj b { color: var(--gold-2); }
.sem-horas span { display: block; font-size: 10px; color: var(--muted); text-align: right; padding-right: 3px; transform: translateY(-6px); }
.tl.compacta { border-radius: 6px; }
.tl.compacta .ev { padding: 2px 3px; font-size: 10px; border-left-width: 2px; border-radius: 5px; }
.tl.compacta .ev b { white-space: normal; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; font-weight: 600; }
.mes-cab, .mes-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mes-cab span { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.mes-grade button { min-height: 66px; background: var(--surface); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; position: relative; min-width: 0; }
.mes-grade button.fora { opacity: .4; }
.mes-grade button.hj { box-shadow: inset 0 0 0 2px var(--gold); }
.mes-grade b { font-size: 12px; }
.mes-grade i { font-style: normal; font-size: 9.5px; line-height: 1.2; padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mes-grade small { font-size: 9.5px; color: var(--muted); }
.mes-grade em { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-kids); }
.fab { position: fixed; right: max(18px, calc(50vw - 302px)); bottom: calc(86px + var(--base)); width: 54px; height: 54px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(47, 138, 94, .7); z-index: 25; }
.fab .ico { width: 26px; height: 26px; }

/* ---- Clara ---- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; display: flex; flex-direction: column; gap: 8px; }
.msg.c { background: var(--surface); border: 1px solid rgba(212, 175, 55, .4); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.u { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg ul { margin: 4px 0; padding-left: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chip:hover { border-color: var(--gold); }
.composer { position: sticky; bottom: calc(70px + var(--base)); display: flex; gap: 8px; background: var(--bg); padding: 8px 0; }
.composer input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); }
.enviar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, #EBCB5C, var(--gold)); color: var(--frame); display: grid; place-items: center; flex: none; }

/* ---- Abas internas, festa, viagem, vision board ---- */
.tabs2 { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs2::-webkit-scrollbar { display: none; }
.tabs2 button { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; }
.tabs2 button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs2 .ico { width: 16px; height: 16px; }
.hero-ev { border-radius: 20px; padding: 16px; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--gold))); color: #fff; text-shadow: 0 1px 4px rgba(19, 40, 31, .25); }
.hero-ev h2 { font-size: 25px; color: #fff; }
.hero-ev .big { font: 700 46px/1 var(--display); font-variant-numeric: tabular-nums; }
.festa-c { flex-direction: row; align-items: center; gap: 12px; color: var(--ink); }
.festa-c b { display: block; }
.festa-c .small { display: block; }
.proj summary { list-style: none; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.proj summary::-webkit-details-marker { display: none; }
.proj summary b { display: block; font-size: 16px; }
details > summary.eyebrow { cursor: pointer; padding: 6px 0; }
.vb { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vbt { border-radius: 16px; padding: 12px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-align: left; }
.vbt.tall { grid-row: span 2; }
.vbt.com-foto { min-height: 150px; }
.vbt.com-foto.tall { min-height: 260px; }
.foto-prev { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px dashed var(--line); min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.foto-prev span { display: flex; align-items: center; gap: 6px; }
.foto-prev img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.foto-campo label.btn { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.vbt b { font: 700 16px/1.15 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, .2); display: block; }
.vbt small { font-size: 11px; opacity: .92; font-weight: 600; }
.vbt .passo { display: block; margin-top: 4px; }
.vbt .prog { background: rgba(255, 255, 255, .35); height: 5px; }
.vbt .prog i { background: #fff; }
.livro .capa { width: 46px; height: 66px; border-radius: 5px; background: linear-gradient(160deg, var(--c-self), var(--gold)); flex: none; }
.add-rapido { display: flex; gap: 6px; }
.add-rapido input, .add-rapido select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); min-width: 0; }
.add-rapido input:first-child { flex: 1; }
.add-rapido .preco { width: 72px; }
.add-rapido select { width: 96px; }
.add-rapido .btn { padding: 10px 12px; align-self: stretch; }
.water { display: flex; gap: 6px; flex-wrap: wrap; }
.water button { width: 32px; height: 40px; border-radius: 6px 6px 10px 10px; border: 2px solid var(--c-study); }
.water button.f { background: color-mix(in srgb, var(--c-study) 70%, transparent); }
.dev { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.dev .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.texto h3 { margin-top: 6px; }
.texto p { font-size: 14px; color: #3C5148; }

/* ---- Entrada e consentimento ---- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 0 4px; }
.hero p { color: var(--muted); }
.hero-t { font-size: 25px; line-height: 1.2; }
.hero-t em { font-style: italic; color: var(--gold-2); }
.logo-g { width: 72px; height: 72px; border-radius: 20px; background: var(--frame); display: flex; align-items: center; justify-content: center; }
.logo-g span { display: inline-flex; align-items: baseline; font: 700 38px/1 var(--display); color: #fff; padding: 0 2px 4px; border-bottom: 3px solid var(--gold); }
.logo-g i { font-style: normal; color: var(--gold); margin-left: 1px; }
.form-boas { gap: 14px; }
.nota { font-size: 13.5px; color: var(--muted); }
.lgpd { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lgpd li { display: flex; gap: 10px; }
.lgpd .ico { color: var(--accent-text); margin-top: 1px; }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.aceite input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.codigo { letter-spacing: .4em; font-size: 22px !important; text-align: center; }

/* ---- Formulários ---- */
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label { font-size: 13px; font-weight: 600; color: #3C5148; }
.campo label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.campo input, .campo select, .campo textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); width: 100%; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.pre { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding-left: 12px; }
.pre span { color: var(--muted); }
.pre input { border: 0 !important; box-shadow: none !important; }
.chipsel { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chipsel.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.toggle { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { left: 21px; }
.toggle .tl { font-size: 14px; display: flex; flex-direction: column; }
.toggle .tl small { color: var(--muted); font-size: 12px; }
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(19, 40, 31, .35); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: sobe .2s ease-out; }
@media (min-width: 700px) { .modal-wrap { align-items: center; } .modal { border-radius: 22px; } }
@keyframes sobe { from { transform: translateY(30px); opacity: .5; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.modal-b { padding: 6px 18px calc(18px + var(--base)); overflow-y: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.modal-b > * { flex: 1 1 100%; }
.modal-b > .meia { flex: 1 1 40%; }
.modal-f { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--base)); transform: translateX(-50%); background: var(--frame); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 60; transition: opacity .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.sai { opacity: 0; }

@media (min-width: 700px) {
  .grid-mods { grid-template-columns: repeat(8, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
