/* natty, app de celular primeiro. Poucos padrões: raio 24/16/999, recuo 16/20, gap 12. */
:root {
  --bg: #fff5f7;
  --bg-2: #ffe4ec;
  --surface: #ffffff;
  --surface-2: #fbf0f3;
  --surface-3: #f3e3e9;
  --ink: #2b1a24;
  --ink-2: #74606b;
  --ink-3: #a8949f;
  --line: #f4e4ea;
  --brand: #d6386c;
  --brand-2: #f0739b;
  --brand-ink: #ffffff;
  --period: #d6386c;
  --period-soft: #ffd3e0;
  --fertile: #11847a;
  --fertile-soft: #cdeee9;
  --ovulation: #0b6a62;
  --follicular: #3d6fb0;
  --luteal: #8a57c7;
  --preg: #7b4fd6;
  --symptom: #c2531c;
  --mood: #a05a0a;
  --sex: #c42f62;
  --water: #2f73d9;
  --ok: #188052;
  --shadow: 0 1px 2px rgba(214, 56, 108, 0.04), 0 10px 30px rgba(214, 56, 108, 0.07);
  --shadow-lg: 0 18px 40px rgba(120, 30, 70, 0.16);
  --r: 24px;
  --r-sm: 16px;
  --pad: 18px;
  --gap: 12px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #170f14; --bg-2: #2a1520; --surface: #22171e; --surface-2: #2c1f27; --surface-3: #382830;
    --ink: #f8edf2; --ink-2: #c7b2bd; --ink-3: #8f7a85; --line: #34252d;
    --period-soft: #4d1f30; --fertile-soft: #12352f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25); --shadow-lg: 0 18px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #170f14; --bg-2: #2a1520; --surface: #22171e; --surface-2: #2c1f27; --surface-3: #382830;
  --ink: #f8edf2; --ink-2: #c7b2bd; --ink-3: #8f7a85; --line: #34252d;
  --period-soft: #4d1f30; --fertile-soft: #12352f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25); --shadow-lg: 0 18px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-2);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
.ic { flex: none; display: block; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- casca: aparelho ---------- */
.phone { position: relative; max-width: 440px; margin: 0 auto; min-height: 100dvh; background: var(--bg); overflow-x: clip; }
@media (min-width: 520px) {
  body { background: radial-gradient(circle at 20% 10%, var(--bg) 0, var(--bg-2) 60%); }
  .phone { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}
.screen { position: relative; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); display: flex; flex-direction: column; gap: var(--gap); }
.glow { position: absolute; inset: 0 0 auto 0; height: 380px; background: radial-gradient(120% 90% at 50% 0%, var(--bg-2) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.screen > * { position: relative; z-index: 1; }
.screen > .glow { position: absolute; z-index: 0; }

.appbar { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.appbar .grow { flex: 1; min-width: 0; }
.appbar h1 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.appbar .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.round-btn { width: 42px; height: 42px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); flex: none; }
.round-btn.brand { background: var(--brand); color: #fff; }
.avatar { width: 42px; height: 42px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.streak { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px 0 9px; border-radius: 999px; background: #d4580f; color: #fff; font-weight: 800; font-size: 13px; }

/* barra de abas flutuante */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 10px);
  width: min(408px, calc(100% - 24px)); height: 66px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 30; padding: 0 6px;
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; color: var(--ink-3); font-size: 10.5px; font-weight: 700; }
.tab .ic { width: 22px; height: 22px; }
.tab.active { color: var(--brand); }
.tab-plus { justify-self: center; width: 58px; height: 58px; margin-top: -30px; border-radius: 999px; background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(214, 56, 108, 0.42), 0 0 0 6px var(--bg); }
.tab-plus .ic { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- componentes ---------- */
.card { background: var(--surface); border-radius: var(--r); padding: var(--pad); box-shadow: var(--shadow); min-width: 0; }
.card.tint { background: var(--surface-2); box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 26px; }
.card-h h2, .card-h h3 { font-size: 15.5px; font-weight: 800; }
.card-h .spacer { flex: 1; }
.link { color: var(--brand); font-weight: 750; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.section-t { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px -2px; }
.section-t h2 { font-size: 17px; font-weight: 800; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 750; font-size: 14.5px; white-space: nowrap; background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(214, 56, 108, 0.28); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.white { background: var(--surface); box-shadow: var(--shadow); }
.btn.danger { background: var(--period); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:active, .round-btn:active, .tab-plus:active, .tile-btn:active { transform: scale(0.97); }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }

/* selos sólidos */
.tile { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.tile.sm { width: 34px; height: 34px; border-radius: 12px; }
.tile.sm .ic { width: 18px; height: 18px; }
.tile.round { border-radius: 999px; }
.bg-period { background: var(--period); } .bg-fertile { background: var(--fertile); } .bg-ovulation { background: var(--ovulation); }
.bg-follicular { background: var(--follicular); } .bg-luteal { background: var(--luteal); } .bg-preg { background: var(--preg); }
.bg-symptom { background: var(--symptom); } .bg-mood { background: var(--mood); } .bg-sex { background: var(--sex); }
.bg-brand { background: var(--brand); } .bg-ink { background: var(--ink); color: var(--bg); } .bg-ok { background: var(--ok); }
.bg-water { background: var(--water); } .bg-peri { background: var(--luteal); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 750; color: #fff; white-space: nowrap; }

.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.stat span { font-size: 12px; color: var(--ink-2); }

.row { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.row .sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.list-btn { width: 100%; text-align: left; }
.chev { color: var(--ink-3); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.input { height: 48px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; width: 100%; outline: none; }
.input:focus { border-color: var(--brand-2); }
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.seg { display: flex; padding: 4px; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; gap: 4px; }
.seg button { flex: 1; height: 38px; padding: 0 12px; border-radius: 999px; font-weight: 750; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button.on { background: var(--brand); color: #fff; }
.seg.wrap { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 650; font-size: 13px; }
.chip.on { background: var(--ink); color: var(--bg); }

.check { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--ink-3); display: grid; place-items: center; flex: none; color: transparent; }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.check .ic { width: 15px; height: 15px; stroke-width: 3; }

.switch { width: 48px; height: 30px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.15s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

.note-box { background: var(--surface-2); border-radius: var(--r-sm); padding: 13px 15px; font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.note-box .ic { margin-top: 1px; }
.empty { text-align: center; padding: 22px 10px; color: var(--ink-2); font-size: 13.5px; }

/* ---------- Início ---------- */
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk .o { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-weight: 750; font-size: 13px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.wk .o.done { border-color: var(--fertile); color: var(--fertile); }
.wk .o.period { border: 0; background: var(--period); color: #fff; }
.wk .o.today { border-color: var(--ink); }
.wk .o.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wk .o .ic { width: 16px; height: 16px; stroke-width: 2.8; }
.wk span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.wk.is-today span { color: var(--ink); }

.ring-box { position: relative; width: min(290px, 78vw); aspect-ratio: 1; margin: 4px auto 0; }
.ring-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22%; gap: 2px; }
.ring-mid .k { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ring-mid .big { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
.ring-mid .big small { font-size: 18px; letter-spacing: -0.01em; }
.ring-mid .s { font-size: 12.5px; color: var(--ink-2); font-weight: 600; text-wrap: balance; margin-top: 4px; }
.ring-cta { display: flex; justify-content: center; gap: 8px; margin-top: -4px; }

.phase-card { display: flex; gap: 14px; align-items: center; }
.phase-card .illus { flex: none; }
.phase-card h3 { font-size: 17px; font-weight: 800; }
.chance { display: flex; gap: 5px; margin-top: 8px; }
.chance i { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-3); }
.chance i.on { background: var(--fertile); }

.trk { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-height: 132px; }
.trk .top { display: flex; align-items: center; justify-content: space-between; font-weight: 750; font-size: 13.5px; }
.trk .val { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.trk .val small { font-size: 12.5px; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.trk .bar { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: auto; }
.trk .bar i { display: block; height: 100%; border-radius: 999px; }

.tip-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; }
.tip-card .t { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.tip-card .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

.event { display: flex; align-items: center; gap: 12px; }
.event .when { margin-left: auto; text-align: right; font-size: 12px; font-weight: 750; color: var(--ink-2); white-space: nowrap; }

/* ---------- Calendário ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-head h2 { font-size: 17px; font-weight: 800; flex: 1; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.cal-grid .wl { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 4px 0 6px; }
.cd { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 650; font-size: 14px; }
.cd.out .dn { opacity: 0.3; }
.dn.period { background: var(--period); color: #fff; font-weight: 800; }
.dn.period-pred { box-shadow: inset 0 0 0 2px var(--period); color: var(--period); font-weight: 800; }
.dn.fertile { box-shadow: inset 0 0 0 2px var(--fertile); color: var(--fertile); font-weight: 800; }
.dn.ovulation { background: var(--fertile); color: #fff; font-weight: 800; }
.dn.today { box-shadow: inset 0 0 0 2px var(--ink); }
.dn.period.today, .dn.ovulation.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.cd.sel .dn:not(.period):not(.ovulation) { background: var(--ink); color: var(--bg); box-shadow: none; }
.cd .mk { width: 5px; height: 5px; border-radius: 999px; }
.cd .mk.on { background: var(--brand-2); }
.cd.edit .dn { box-shadow: inset 0 0 0 2px var(--line); }
.cd.edit .dn.period { box-shadow: none; }
.cd.future.edit { pointer-events: none; opacity: 0.4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.status3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.status3 span.tile { margin: 0 auto 8px; color: #fff; }
.status3 b { display: block; font-size: 17px; font-weight: 800; }
.status3 span { font-size: 11.5px; color: var(--ink-2); }

.phase-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px var(--pad); }
.phase-hero h2 { font-size: 21px; font-weight: 800; }
.kv h4 { font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.kv p { font-size: 13.5px; color: var(--ink-2); }
.kv + .kv { margin-top: 14px; }

/* ---------- Registro ---------- */
.scrim { position: fixed; inset: 0; background: rgba(30, 10, 22, 0.42); z-index: 50; opacity: 0; transition: opacity 0.2s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 51; background: var(--bg); display: flex; flex-direction: column;
  left: 50%; bottom: 0; width: min(440px, 100%); height: 94dvh; border-radius: 28px 28px 0 0;
  transform: translate(-50%, 100%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet.center { height: auto; max-height: 86dvh; }
.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--surface-3); }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 22px var(--pad) 10px; }
.sheet-h h2 { font-size: 19px; font-weight: 800; flex: 1; }
.sheet-b { overflow: auto; padding: 6px var(--pad) var(--pad); display: flex; flex-direction: column; gap: var(--gap); flex: 1; overscroll-behavior: contain; }
.sheet-f { padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.sheet-f .btn { flex: 1; }

.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ds { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 16px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.ds b { font-size: 15px; color: var(--ink); }
.ds.on { background: var(--brand); color: rgba(255,255,255,.85); }
.ds.on b { color: #fff; }
.ds:disabled { opacity: 0.35; }

.lg { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.lg .gh { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.lg .gh .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.tile-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--ink-2); text-align: center; line-height: 1.2; }
.tile-btn .o { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); transition: transform .12s; }
.tile-btn .o .ic { width: 24px; height: 24px; }
.tile-btn.on { color: var(--ink); font-weight: 800; }
.tile-btn.on .o { color: #fff; }
.tile-btn.on.c-period .o { background: var(--period); } .tile-btn.on.c-fertile .o { background: var(--fertile); }
.tile-btn.on.c-ovulation .o { background: var(--ovulation); } .tile-btn.on.c-follicular .o { background: var(--follicular); }
.tile-btn.on.c-luteal .o { background: var(--luteal); } .tile-btn.on.c-preg .o { background: var(--preg); }
.tile-btn.on.c-symptom .o { background: var(--symptom); } .tile-btn.on.c-mood .o { background: var(--mood); }
.tile-btn.on.c-sex .o { background: var(--sex); } .tile-btn.on.c-peri .o { background: var(--luteal); }
.measure { display: flex; align-items: center; gap: 12px; }
.measure .grow { flex: 1; }
.measure .val { font-weight: 800; font-size: 15px; }

/* ---------- Medidas ---------- */
.big-num { text-align: center; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.big-num small { font-size: 18px; color: var(--ink-2); font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.adj { display: flex; align-items: center; justify-content: center; gap: 18px; }
.adj .round-btn { width: 54px; height: 54px; }
.drop-wrap { position: relative; width: 190px; height: 230px; margin: 4px auto; }
.drop-wrap svg { width: 100%; height: 100%; }
.drop-wrap .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 50px; }
.drop-wrap .lbl b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.drop-wrap .lbl span { font-size: 12.5px; font-weight: 650; }
.cups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cups button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 11.5px; font-weight: 750; color: var(--ink-2); }
.cups button.on { background: var(--water); color: #fff; }
.gauge-box { position: relative; width: 230px; margin: 0 auto; }
.gauge-box svg { width: 100%; display: block; }
.gauge-box .lbl { text-align: center; margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge-box .lbl b { font-size: 30px; font-weight: 800; display: block; line-height: 1.1; }

/* ---------- Gráficos ---------- */
.cyc { display: flex; flex-direction: column; gap: 14px; }
.cyc-row .meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.cyc-row .meta b { font-weight: 800; }
.dotsbar { display: flex; gap: 2.5px; }
.dotsbar i { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-3); min-width: 0; }
.dotsbar i.p { background: var(--period); }
.dotsbar i.f { background: var(--fertile-soft); }
.dotsbar i.o { background: var(--fertile); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.freq { display: flex; flex-direction: column; gap: 12px; }
.freq-row { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.freq-row .nm { font-weight: 700; margin-bottom: 4px; }
.freq-row .track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.freq-row .fill { height: 100%; border-radius: 999px; }
.freq-row b { text-align: right; }
.pager { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 4px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.pager button { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.pager button:disabled { opacity: 0.3; cursor: default; }
.pager span { padding: 0 2px; }

/* ---------- Descobrir ---------- */
.feature { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px; background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; box-shadow: 0 14px 30px rgba(214, 56, 108, .28); }
.feature h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.feature p { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.feature .cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 800; font-size: 13px; }
.art { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; }
.art .illus { flex: none; }
.art h3 { font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.art p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.art .meta { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; font-weight: 650; }
.article h1 { font-size: 25px; font-weight: 800; line-height: 1.18; }
.article h2 { font-size: 17px; margin-top: 6px; }
.article p, .article li { font-size: 15px; line-height: 1.65; }
.article ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.article .body { display: flex; flex-direction: column; gap: 12px; }
.tool-tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.tool-tile.on { box-shadow: 0 0 0 2px var(--brand); }
.tool-tile .title { font-weight: 800; font-size: 13px; line-height: 1.25; }

/* ---------- Assistente ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 20px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.composer { display: flex; gap: 8px; background: var(--surface); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); }
.composer .input { border: 0; height: 42px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Gravidez ---------- */
.journey { position: relative; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.wk-badge { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); min-width: 0; }
.wk-badge b { font-size: 26px; font-weight: 800; line-height: 1; }
.wk-badge span { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 4px; }
.timeline .marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; }
.timeline .track { position: relative; height: 12px; border-radius: 999px; background: var(--surface-3); }
.timeline .track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--preg); }
.timeline .knob { position: absolute; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 999px; background: var(--preg); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface); }
.metric { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); min-height: 124px; text-align: left; }
.metric.solid { background: var(--preg); color: #fff; }
.metric.solid .muted { color: rgba(255, 255, 255, 0.88); }
.metric .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: auto; line-height: 1.1; }
.metric .v small { font-size: 12.5px; font-weight: 700; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--preg); border-radius: 999px; }
.big-btn { width: 150px; height: 150px; border-radius: 999px; background: var(--preg); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; margin: 8px auto; box-shadow: 0 14px 30px rgba(123, 79, 214, 0.35); }
.big-btn:active { transform: scale(0.97); }
.big-btn.stop { background: var(--period); box-shadow: 0 14px 30px rgba(214, 56, 108, 0.35); }

/* ---------- Boas-vindas ---------- */
.onb { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 20px); gap: 18px; }
.onb-top { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.onb-top .prog { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.onb-top .prog i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.onb-top .cnt { font-size: 12.5px; font-weight: 750; color: var(--ink-2); min-width: 30px; text-align: right; }
.onb h1 { font-size: 26px; font-weight: 800; line-height: 1.18; text-align: center; }
.onb .lead { text-align: center; color: var(--ink-2); font-size: 14px; }
.onb-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.onb-foot { display: flex; flex-direction: column; gap: 10px; }
.onb-hero { display: flex; justify-content: center; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--surface-3); transition: width .2s; }
.dots i.on { width: 22px; background: var(--brand); }
.choice { display: flex; align-items: center; gap: 14px; padding: 15px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: left; width: 100%; }
.choice.on { box-shadow: 0 0 0 2px var(--brand); }
.choice .title { font-weight: 800; }
.choice .sub { font-size: 12.5px; color: var(--ink-2); }

/* roda de seleção */
.wheel-wrap { position: relative; }
.wheel-wrap::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 50px; margin-top: -25px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); pointer-events: none; }
.wheel { position: relative; height: 230px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel .it { height: 46px; display: grid; place-items: center; scroll-snap-align: center; font-size: 19px; font-weight: 700; color: var(--ink-3); transition: color .15s, font-size .15s; }
.wheel .it.on { color: var(--brand); font-size: 28px; font-weight: 800; }
.wheel .pad { height: 92px; }
.wheels { display: grid; gap: 8px; }
.ruler-wrap { position: relative; }
.ruler-wrap::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 58px; margin-left: -2px; border-radius: 4px; background: var(--brand); }
.ruler { position: relative; height: 84px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.ruler::-webkit-scrollbar { display: none; }
.ruler .ticks { display: flex; align-items: flex-end; height: 100%; }
.ruler .t { flex: none; width: 12px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ruler .t i { width: 2px; height: 22px; background: var(--ink-3); border-radius: 2px; }
.ruler .t.major i { height: 40px; background: var(--ink-2); }
.loader-ring { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.loader-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; }

/* bloqueio */
.lock { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.pin-dots { display: flex; gap: 14px; justify-content: center; }
.pin-dots i { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--ink-3); }
.pin-dots i.on { background: var(--brand); border-color: var(--brand); }
.keypad { display: grid; grid-template-columns: repeat(3, 70px); gap: 16px; justify-content: center; }
.keypad button { width: 70px; height: 70px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 24px; font-weight: 700; display: grid; place-items: center; }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; opacity: 0; transition: 0.2s; z-index: 80; pointer-events: none; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .tiles { gap: 12px 2px; }
  .tile-btn .o { width: 48px; height: 48px; }
  .dn { width: 36px; height: 36px; }
  .ring-mid .big { font-size: 34px; }
}


/* ---------- colunas: no celular não mudam a ordem, no computador viram grade ---------- */
.sidebar { display: none; }
.cols, .col, .dgrid, .masonry { display: contents; }

/* ---------- computador ---------- */
@media (min-width: 1024px) {
  :root { --pad: 22px; --gap: 16px; }
  body { background: var(--bg); }
  .phone.app { max-width: none; box-shadow: none; display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 26px 18px 20px;
    background: var(--surface); box-shadow: 1px 0 0 var(--line);
  }
  .sb-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; padding: 0 8px 20px; }
  .sidebar > .btn { margin-bottom: 14px; }
  .sb-nav { display: flex; flex-direction: column; gap: 4px; }
  .sb-item { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 16px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); text-align: left; }
  .sb-item:hover { background: var(--surface-2); color: var(--ink); }
  .sb-item.active { background: var(--brand); color: #fff; }
  .sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
  .sb-streak { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 650; padding: 0 6px; }
  .sb-privacy { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
  .sb-privacy .ic { color: var(--ok); }

  .app .screen { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 40px 56px; }
  .app .appbar h1 { font-size: 28px; }
  .app .glow { height: 460px; }

  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
  .cols.wide-a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cols.wide-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
  .col.sticky { position: sticky; top: 24px; }
  .dgrid { display: grid; grid-template-columns: repeat(var(--dcols, 2), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .g4d { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g6d { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .narrow { max-width: 760px; width: 100%; margin: 0 auto; }
  .seg.wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: 999px; }
  .masonry { display: block; columns: 2; column-gap: var(--gap); }
  .masonry > * { break-inside: avoid; margin-bottom: var(--gap); }

  /* registro e diálogos: gaveta à direita e janela central */
  .sheet { left: auto; right: 0; top: 0; bottom: 0; height: 100dvh; width: 500px; border-radius: 28px 0 0 28px; transform: translateX(100%); box-shadow: var(--shadow-lg); }
  .sheet.show { transform: none; }
  .sheet::before { display: none; }
  .sheet.center { top: 50%; left: 50%; right: auto; bottom: auto; height: auto; width: 460px; border-radius: 28px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet.center.show { transform: translate(-50%, -50%); opacity: 1; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .toast { bottom: 28px; }

  .ring-box { width: min(340px, 100%); }
  .ring-mid .big { font-size: 46px; }
  .wk .o { width: 42px; height: 42px; }
  .dn { width: 46px; height: 46px; font-size: 15px; }
  .cal-grid { row-gap: 10px; }
  .art-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px !important; }
  .onb { padding-top: 40px; }
}
@media (min-width: 1360px) {
  .app .screen { padding: 36px 56px 64px; }
}

@media print {
  .tabbar, .sidebar, .no-print, .toast { display: none !important; }
  .phone.app { display: block; }
  .phone { max-width: none; box-shadow: none; }
  body { background: #fff; }
}
