:root {
  --bg: #F4F4F2;
  --panel: #FFFFFF;
  --panel-2: #FAFAF8;
  --ink: #0A0A0A;
  --ink-2: #4A4A4A;
  --muted: #8A8A87;
  --line: #E4E4E0;
  --line-2: #EFEFEC;
  --navy: #0A0A0A;
  --navy-2: #262626;
  --red: #D7262E;
  --red-soft: #FCEBEC;
  --ok: #157F4B; --ok-soft: #E6F4EC;
  --warn: #A15C00; --warn-soft: #FDF2E1;
  --bad: #B42318; --bad-soft: #FDECEA;
  --c-fe: #D7262E; --c-celula: #2F5BD3; --c-arena: #0E9AA7; --c-familia: #C97A00;
  --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(10, 10, 10, .03), 0 8px 24px -14px rgba(10, 10, 10, .18);
  --font: 'Poppins', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --side: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(10, 10, 10, .045) 1px, transparent 1px);
  background-size: 22px 22px; background-attachment: fixed;
  min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 22px 16px; overflow: hidden;
}
.side::after { content: ''; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 0 0 40px rgba(255,255,255,.02), 0 0 0 80px rgba(255,255,255,.015); pointer-events: none; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 6px 10px 24px; }
.logo { display: block; height: 30px; width: auto; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.sym { display: block; height: 30px; width: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.66); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; position: relative; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; background: #fff; border-radius: 0 3px 3px 0; }
.nav .badge { margin-left: auto; font-family: var(--mono); font-size: 10px; background: #fff; color: #0A0A0A; font-style: normal; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.who b { font-size: 13px; font-weight: 600; display: block; line-height: 1.2; }
.who span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }

.app > div { min-width: 0; }
.main { min-width: 0; padding: 28px 36px 60px; max-width: 1280px; width: 100%; }
.topbar { display: none; }
.tabbar { display: none; }

/* ---------- cabeçalho de página ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.head p.sub { color: var(--ink-2); margin-top: 6px; font-size: 13.5px; }
.week { display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); }
.week button { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); }
.week button:hover:not(:disabled) { background: var(--line-2); }
.week button:disabled { opacity: .3; cursor: default; }
.week .lbl { padding: 0 12px; text-align: center; min-width: 150px; }
.week .lbl b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.week .lbl span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- painéis ---------- */
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(5, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2 { grid-template-columns: 1.65fr 1fr; }
.g-2e { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.panel-h h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.panel-b { padding: 16px 18px 18px; }
.sec { margin-top: 18px; }

.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .v { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.kpi .d { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.kpi.hero { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.hero .eyebrow { color: rgba(255,255,255,.55); }
.kpi.hero .d { color: rgba(255,255,255,.7); }
.kpi.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 22px rgba(255,255,255,.03); }

.meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.kpi.hero .meter { background: rgba(255,255,255,.14); }
.kpi.hero .meter i { background: #fff; }

/* cultos */
.culto { padding: 16px 18px 14px; display: flex; flex-direction: column; }
.culto .top { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.culto .nome { font-weight: 600; font-size: 13.5px; }
.culto .dia { margin-left: auto; }
.culto .v { font-size: 34px; font-weight: 600; letter-spacing: -.035em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.culto .foot { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.delta { white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.eq { color: var(--muted); background: var(--line-2); }
.culto .bar { height: 3px; margin: auto -18px -14px; padding-top: 0; border-radius: 0 0 var(--r) var(--r); }

/* tabelas */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.tbl th.sort { cursor: pointer; }
.tbl th.sort:hover { color: var(--ink); }
.tbl th.on { color: var(--ink); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover { background: var(--panel-2); }
.tbl .t-main { font-weight: 600; }
.tbl .t-sub { font-size: 11.5px; color: var(--muted); }
.rank { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 26px; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--ok); background: var(--ok-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.bad { color: var(--bad); background: var(--bad-soft); }
.tag.neu { color: var(--ink-2); background: var(--line-2); }
.tag.navy { color: #1F1F1F; background: #E9E9E6; }
.tag.plain::before { display: none; }

.mini-bar { display: inline-block; width: 70px; height: 5px; background: var(--line-2); border-radius: 99px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--navy); }
.mini-bar i.full { background: var(--ok); }

/* gráfico */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; }
.chart .axis-t { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.chart .lab { font-family: var(--font); font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; min-width: 170px; box-shadow: 0 10px 30px -10px rgba(10,10,10,.5); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; z-index: 5; }
.tip.on { opacity: 1; transform: none; }
.tip .tt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.tip .tr { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.tip .tr b { margin-left: auto; font-family: var(--mono); font-weight: 500; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; }
.seg button { padding: 5px 11px; font-size: 12px; font-weight: 500; border-radius: 7px; color: var(--ink-2); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(10,10,10,.1); }

/* listas */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { font-weight: 600; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .grow span { font-size: 12px; color: var(--muted); }
.ini { width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: none; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 13px; }
.dots4 { display: inline-flex; gap: 4px; }
.dots4 i { width: 9px; height: 9px; border-radius: 3px; background: var(--line); }
.dots4 i.on { background: var(--navy); }

/* cards de equipe */
.eq-card { padding: 18px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.eq-card:hover { transform: translateY(-2px); border-color: #CFCFCA; box-shadow: 0 14px 30px -18px rgba(10,10,10,.35); }
.eq-card .nm { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.eq-card .rs { font-size: 12px; color: var(--ink-2); }
.eq-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.eq-card .nums b { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.eq-card .nums span { font-size: 10px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eq-card .pdl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 14px; }
.eq-card .idx { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; font-weight: 600; font-size: 13.5px; transition: transform .1s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-p { background: var(--navy); color: #fff; }
.btn-p:hover { background: var(--navy-2); }
.btn-r { background: #0A0A0A; color: #fff; }
.btn-r:hover { background: #262626; }
.cta-lancar .btn-r { background: #fff; color: #0A0A0A; }
.cta-lancar .btn-r:hover { background: #EDEDEA; }
.btn-g { background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.btn-g:hover { background: var(--panel-2); }
.btn-s { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.inp { height: 44px; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; padding: 0 14px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.inp:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .inp { padding-left: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .c { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 220px; }

/* ---------- lançamento ---------- */
.wiz { max-width: 720px; }
.wiz-top { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.periods { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.periods::-webkit-scrollbar { display: none; }
.period { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 13px; text-align: left; min-width: 128px; }
.period b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.period span { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.period span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.period.done span::before { background: var(--ok); }
.period.pend span::before { background: var(--bad); }
.period.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--navy); }
.steps i.cur { background: #8A8A87; }
.step-card { padding: 22px; }
.step-h { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.step-h h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.step-h p { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 14px; }
.counter-row .lbl b { display: block; font-weight: 600; font-size: 13.5px; }
.counter-row .lbl span { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 8px; font-size: 18px; color: var(--ink-2); }
.stepper button:hover { background: var(--line-2); }
.stepper b { min-width: 34px; text-align: center; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.check-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ck { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; user-select: none; transition: background .12s; background: var(--panel); }
.ck:last-child { border-bottom: 0; }
.ck:hover { background: var(--panel-2); }
.ck .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #C5CBD8; display: grid; place-items: center; flex: none; transition: all .15s; }
.ck .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.ck.on .box { background: var(--navy); border-color: var(--navy); }
.ck.on .box svg { opacity: 1; transform: none; }
.ck .grow { flex: 1; min-width: 0; }
.ck .grow b { font-weight: 500; font-size: 14px; }
.ck .grow span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.add-row { display: flex; gap: 8px; padding: 10px; background: var(--panel-2); border-top: 1px dashed var(--line); }
.add-row .inp { height: 40px; }
.add-row .inp.age { width: 84px; flex: none; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn button { height: 64px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 600; font-size: 15px; transition: all .15s; }
.yn button:hover { border-color: #C5CBD8; }
.yn button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.wiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.wiz-nav .btn { min-width: 120px; }
.pd-row { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.pd-row select.inp { padding: 0 10px; }
.money { position: relative; }
.money span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.money .inp { padding-left: 34px; font-family: var(--mono); }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--bad); }
.icon-btn svg { width: 16px; height: 16px; }
.review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rv { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rv .v { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.rv .s { font-size: 12px; color: var(--muted); }
.done-hero { text-align: center; padding: 40px 20px; }
.done-hero .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.done-hero h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.done-hero p { color: var(--ink-2); margin-top: 6px; }

/* ---------- modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 10, 10, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .18s ease; }
.modal { background: var(--panel); border-radius: 18px; width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px -20px rgba(10,10,10,.5); animation: pop .24s cubic-bezier(.2,.9,.3,1.2); }
.modal h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.modal p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.modal .pd-ic { width: 52px; height: 52px; border-radius: 14px; background: #0A0A0A; color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.toast { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; opacity: 0; transition: all .25s; z-index: 60; box-shadow: 0 16px 40px -14px rgba(10,10,10,.6); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-art { background: var(--navy); color: #fff; padding: 44px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art .rings { position: absolute; right: -180px; bottom: -180px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.login-art .rings::before, .login-art .rings::after { content: ''; position: absolute; inset: 70px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.login-art .rings::after { inset: 150px; border-color: rgba(255,255,255,.16); }
.login-art h1 { font-size: 46px; font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin-top: auto; max-width: 480px; position: relative; }
.login-art h1 em { font-style: normal; color: rgba(255,255,255,.42); }
.login-art p { opacity: .68; margin-top: 16px; max-width: 420px; font-size: 14.5px; position: relative; }
.login-art .stats { display: flex; gap: 34px; margin-top: 36px; position: relative; }
.login-art .stats b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.login-art .stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.login-box > p { color: var(--ink-2); margin-top: 6px; margin-bottom: 24px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; }
.demo { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.demo-list button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s, transform .1s; }
.demo-list button:hover { border-color: var(--navy); }
.demo-list button b { display: block; font-size: 13.5px; font-weight: 600; }
.demo-list button span { font-size: 11.5px; color: var(--muted); }
.demo-list .r { margin-left: auto; color: var(--muted); }

/* banner de instalar */
.install { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--navy); color: #fff; border-radius: var(--r); margin-bottom: 16px; }
.install .sym { height: 34px; }
.install .grow { flex: 1; }
.install .grow b { display: block; font-size: 13.5px; }
.install .grow span { font-size: 12px; opacity: .7; }
.install .btn { background: #fff; color: var(--navy); height: 36px; }
.install .x { opacity: .6; padding: 6px; }

.cta-lancar { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--navy); color: #fff; border-radius: var(--r); position: relative; overflow: hidden; }
.cta-lancar::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.cta-lancar .grow { flex: 1; position: relative; z-index: 1; }
.cta-lancar h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.cta-lancar .eyebrow { color: rgba(255,255,255,.55); }
.cta-lancar p { opacity: .7; font-size: 13px; margin-top: 2px; }
.cta-lancar .btn { position: relative; z-index: 1; }
.cta-lancar.done { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.cta-lancar.done .eyebrow { color: var(--ok); }
.cta-lancar.done p { color: var(--ink-2); opacity: 1; }
.cta-lancar.done::after { border-color: var(--line-2); box-shadow: none; }

.setting { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.setting:last-child { border-bottom: 0; }
.setting .grow { flex: 1; }
.setting .grow b { display: block; font-weight: 600; font-size: 13.5px; }
.setting .grow span { font-size: 12.5px; color: var(--ink-2); }
.switch { width: 44px; height: 26px; border-radius: 99px; background: #CDD3DE; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--navy); }
.switch.on::after { transform: translateX(18px); }
.sched { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sched div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sched div i { font-style: normal; font-family: var(--mono); font-size: 11px; background: var(--line-2); padding: 3px 8px; border-radius: 6px; min-width: 112px; text-align: center; }

.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 14px; height: 14px; }

/* entrada */
.rise { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .rise, .modal, .scrim { animation: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .g-kpi { grid-template-columns: repeat(3, 1fr); }
  .g-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 16px 16px calc(96px + var(--safe-b)); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; background: rgba(10,10,10,.94); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
  .topbar .logo { height: 22px; }
  .topbar .tb-sub { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.16); line-height: 1.2; }
  .topbar b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; display: block; }
  .topbar span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
  .topbar .avatar { margin-left: auto; background: rgba(255,255,255,.12); color: #fff; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 500; color: var(--muted); }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--navy); }
  .tabbar a.main-t span.pill { width: 46px; height: 32px; border-radius: 11px; background: #0A0A0A; color: #fff; display: grid; place-items: center; margin-top: -2px; }
  .tabbar a.main-t span.pill svg { width: 19px; height: 19px; }
  .head h1 { font-size: 23px; }
  .head { margin-bottom: 16px; }
  .head .week { width: 100%; justify-content: space-between; }
  .g-kpi { grid-template-columns: 1fr 1fr; }
  .g-kpi .kpi.hero { grid-column: 1 / -1; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .g-2e, .g-3 { grid-template-columns: 1fr; }
  .grid { gap: 12px; }
  .kpi .v { font-size: 25px; }
  .culto .v { font-size: 28px; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 22px 30px; min-height: 300px; }
  .login-art h1 { font-size: 32px; margin-top: 60px; }
  .login-art .stats { gap: 22px; margin-top: 24px; }
  .login-art .rings { width: 420px; height: 420px; right: -200px; bottom: -220px; }
  .step-card { padding: 18px 16px; }
  .cta-lancar { flex-direction: column; align-items: stretch; }
  .review { grid-template-columns: 1fr 1fr; }
  .scrim { align-items: end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-width: none; padding: 22px 18px calc(22px + var(--safe-b)); animation: sheet .28s cubic-bezier(.2,.9,.3,1); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .tbl td, .tbl th { padding: 10px 9px; }
  .hide-m { display: none; }
}

/* ---------- pessoas ---------- */
a.li-link { margin: 0 -10px; padding: 11px 10px; border-radius: 10px; transition: background .12s; }
a.li-link:hover { background: var(--panel-2); }
.li .chev { color: #C4C4BF; display: grid; }
.li .chev svg { width: 16px; height: 16px; }
.pres-col { min-width: 82px; text-align: right; }
button.kpi.freq { cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
button.kpi.freq:hover { border-color: #CFCFCA; }
button.kpi.freq.on { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
button.kpi.freq.on .eyebrow, button.kpi.freq.on .d { color: rgba(255,255,255,.65); }
.inp.sel { width: auto; min-width: 170px; padding: 0 12px; }
.inp.ro { display: flex; align-items: center; background: var(--panel-2); color: var(--ink-2); }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.info .eyebrow { display: block; margin-bottom: 3px; }
.info b { font-weight: 500; font-size: 13.5px; }
.ulink { border-bottom: 1px solid #C9C9C4; }
.ulink:hover { border-color: var(--ink); }
.freq-grid { display: grid; gap: 6px; align-items: center; }
.fg-h { font-size: 9.5px; color: var(--muted); text-align: center; }
.fg-l { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fg-c { display: inline-block; height: 22px; border-radius: 6px; background: var(--line-2); border: 1px solid var(--line); }
.legend .fg-c { width: 14px; height: 14px; border-radius: 4px; }
.fg-c.on { border-color: transparent; }
.fg-c.na { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line) 3px 4px); }
.form-cad { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.row2 { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .12s; }
.opt input:checked + span { background: #0A0A0A; border-color: #0A0A0A; color: #fff; }
.opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10,10,10,.15); }
@media (max-width: 960px) {
  .pres-col { min-width: 0; }
  .infos { grid-template-columns: 1fr 1fr; gap: 14px; }
  .freq-grid { grid-template-columns: 74px repeat(8, 1fr) !important; gap: 4px; }
  .fg-l { font-size: 10.5px; }
  .fg-h { font-size: 8px; }
  .toolbar .inp.sel { flex: 1; min-width: 0; }
  button.kpi.freq .v { font-size: 22px; }
}
.pres-col, .pres-col .mono { font-size: 11.5px; color: var(--muted); }
.t-sub { font-size: 11.5px; color: var(--muted); }
.head .sub .t-sub { font-size: 12px; }
@media (max-width: 960px) {
  .toast { bottom: calc(92px + var(--safe-b)); }
  .freq-grid { grid-template-columns: 88px repeat(8, 1fr) !important; }
}

/* ---------- login no celular: topo escuro compacto + folha branca por cima ---------- */
@media (max-width: 960px) {
  .login { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: #0A0A0A; }
  .login-art { flex: none; min-height: 0; padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 58px; }
  .login-art .rings { width: 380px; height: 380px; right: -190px; top: -150px; bottom: auto; }
  .login-art .brand .logo { height: 34px !important; }
  .login-art h1 { font-size: 29px; line-height: 1.08; margin-top: 30px; max-width: 300px; }
  .login-art > p { display: none; }
  .login-art .stats { gap: 0; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .login-art .stats > div { flex: 1; }
  .login-art .stats > div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.12); }
  .login-art .stats b { font-size: 22px; }
  .login-art .stats span { font-size: 9px; }
  .login-form { flex: 1; align-items: flex-start; background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -28px; padding: 28px 20px calc(24px + var(--safe-b)); position: relative; z-index: 1; background-image: radial-gradient(rgba(10,10,10,.045) 1px, transparent 1px); background-size: 22px 22px; }
  .login-box { max-width: none; }
  .login-box h2 { font-size: 22px; }
  .login-box > p { font-size: 13px; margin-bottom: 18px; }
  .login-box form { gap: 12px; }
  .login-box .inp { height: 46px; }
  .login-box .btn { height: 48px; }
  .demo { margin-top: 22px; padding-top: 18px; }
  .demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .demo-list button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 96px; }
  .demo-list button .ini { width: 28px; height: 28px; font-size: 10.5px; }
  .demo-list button b { font-size: 12.5px; line-height: 1.25; }
  .demo-list button span { font-size: 11px; line-height: 1.3; display: block; margin-top: 2px; }
  .demo-list .r { display: none; }
}

/* ---------- fotos ---------- */
.ini { overflow: hidden; }
.ini img, .foto-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ini.sm { width: 30px; height: 30px; font-size: 10px; }
.cel-av { display: flex; align-items: center; gap: 10px; }
.head-av { display: flex; align-items: center; gap: 16px; min-width: 0; }
.foto-g { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-size: 26px; font-weight: 600; letter-spacing: -.02em; border: 1px solid var(--line); overflow: visible; padding: 0; }
.foto-g img { border-radius: 50%; }
.foto-g .cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: #0A0A0A; color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.foto-g .cam svg { width: 14px; height: 14px; }
.foto-g.edit { cursor: pointer; }
.foto-g.edit:hover .cam { background: #262626; }
.foto-pick { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed #CFCFCA; border-radius: 14px; background: var(--panel-2); }
.foto-pick .foto-g { width: 64px; height: 64px; }
.foto-pick .foto-g .cam { width: 24px; height: 24px; border-color: var(--panel-2); }
.foto-pick .foto-g span svg { width: 22px; height: 22px; color: var(--muted); }
.foto-pick b { display: block; font-size: 13.5px; font-weight: 600; }
.foto-pick span { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .foto-g { width: 68px; height: 68px; font-size: 21px; }
  .head-av { gap: 14px; align-items: flex-start; }
  .head-av h1 { font-size: 21px; }
  .head-av .sub { margin-top: 6px; }
  .head-av .eyebrow { display: none; }
}

/* ---------- Sara Kids ---------- */
.tag.kid-esp { color: #fff; background: #0A0A0A; }
.tag.kid-esp::before { background: #fff; }
.ini.lg { width: 52px; height: 52px; font-size: 16px; }
.kid-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.kid-card:hover { transform: translateY(-2px); border-color: #CFCFCA; box-shadow: 0 14px 30px -18px rgba(10,10,10,.35); }
.kid-top { display: flex; align-items: center; gap: 14px; }
.kid-top .grow b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.kid-top .grow span { font-size: 12.5px; color: var(--muted); }
.kid-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.kid-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-2); }
.kid-foot .chev { color: #C4C4BF; display: grid; }
.kid-foot .chev svg { width: 16px; height: 16px; }
.kid-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; }
.kid-empty b { color: var(--ink); font-size: 15px; }
.kid-empty span { max-width: 340px; margin-bottom: 12px; }
.kid-empty-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); margin-bottom: 6px; }
.kid-empty-ic svg { width: 26px; height: 26px; }

.qr-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 20px; }
.qr-box { width: min(280px, 78vw); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-cod { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.qr-cod b { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: .12em; }

.alerta-saude { display: flex; gap: 14px; padding: 16px 18px; background: var(--bad-soft); border-color: #F3C9C4; margin-bottom: 4px; }
.alerta-saude .as-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.alerta-saude .grow { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #7A1A12; }
.alerta-saude .grow > b { font-size: 15px; color: var(--bad); }
.panel.esp { border-color: #0A0A0A; box-shadow: 0 0 0 1px #0A0A0A, var(--shadow); }
.esp-txt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.esp-txt p { font-size: 13.5px; margin-top: 4px; }

.kid-form { display: flex; flex-direction: column; gap: 14px; }
.kid-form .step-card { display: flex; flex-direction: column; gap: 14px; }
.ks-h { display: flex; align-items: center; gap: 10px; }
.ks-h h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ks-n { width: 26px; height: 26px; border-radius: 50%; background: #0A0A0A; color: #fff; font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
.row2.r2b { grid-template-columns: 1fr 1fr; align-items: end; }
.inp.area { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.field .opts + .inp { margin-top: 8px; }
.opt-line { display: block; }
.opt-line span { height: auto; min-height: 42px; padding: 10px 14px; border-radius: 12px; width: 100%; line-height: 1.35; }
.aut-row { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 36px; gap: 8px; margin-bottom: 8px; }

.sala { text-align: left; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; font: inherit; color: inherit; transition: border-color .15s; }
.sala:hover { border-color: #CFCFCA; }
.sala.on { border-color: #0A0A0A; box-shadow: 0 0 0 1px #0A0A0A, var(--shadow); }
.sala-h { display: flex; justify-content: space-between; align-items: flex-start; }
.sala-h b { display: block; font-weight: 600; font-size: 15px; }
.sala-h span { font-size: 11.5px; color: var(--muted); }
.sala-n { font-size: 22px; font-weight: 600; }
.sala-n small { font-size: 12px; color: var(--muted); font-weight: 400; }
.sala .meter { margin-top: 0; }
.sala-av { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 30px; }
.sala-av .ini.sm { margin-right: -10px; border: 2px solid #fff; }
.sala-av .mais { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 6px 0 14px; }
.sala-av .tag { margin-left: 6px; }
.sala-av .ini.sm + .tag, .sala-av .ini.sm + .mais { margin-left: 16px; }

.panel.chamados { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), var(--shadow); margin-bottom: 16px; }
.kid-li { gap: 10px; }
.kid-li-a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.kid-li .kid-tags { margin-top: 5px; }
.etq { font-size: 13px; font-weight: 600; background: var(--line-2); padding: 4px 8px; border-radius: 7px; }
.icon-btn.ch { color: var(--ink); border: 1px solid var(--line); }
.icon-btn.ch:hover { background: #0A0A0A; color: #fff; }
.ent-esp { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.ck .kid-tags { margin-top: 5px; }

.leitor { position: relative; margin-top: 16px; border-radius: 16px; overflow: hidden; background: #0A0A0A; aspect-ratio: 1; }
.leitor video { width: 100%; height: 100%; object-fit: cover; display: block; }
.leitor .mira { position: absolute; inset: 18%; border: 2px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.leitor-msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: 12.5px; }
.cod-row { display: flex; gap: 8px; margin-top: 12px; }
.cod-row .inp { flex: 1; letter-spacing: .1em; }

.kid-alerta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bad); color: #fff; border-radius: var(--r); margin-bottom: 16px; animation: pulsa 1.6s ease-in-out infinite; }
.kid-alerta.indo { background: #0A0A0A; animation: none; }
.kid-alerta .ka-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.kid-alerta .ka-ic svg { width: 19px; height: 19px; }
.kid-alerta .grow b { display: block; font-size: 14px; }
.kid-alerta .grow span { font-size: 12.5px; opacity: .9; }
.kid-alerta .btn { background: #fff; color: var(--bad); height: 38px; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 6px rgba(180,35,24,.18); } }

.et-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.etiqueta { border: 2px solid #0A0A0A; border-radius: 12px; padding: 12px 14px; background: #fff; color: #0A0A0A; }
.et-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.et-nome { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.et-sala { font-size: 13px; font-weight: 500; }
.et-al, .et-esp { display: inline-block; margin-top: 8px; margin-right: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.et-al { background: #0A0A0A; color: #fff; }
.et-esp { border: 1.5px solid #0A0A0A; }
.et-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #0A0A0A; font-family: var(--mono); }
.et-foot b { font-size: 22px; }
#printArea { display: none; }
@media print {
  body.imprimindo > *:not(#printArea) { display: none !important; }
  body.imprimindo { background: #fff; }
  body.imprimindo #printArea { display: block; }
  #printArea .etiqueta { width: 90mm; margin: 0 0 6mm; page-break-inside: avoid; }
}
@media (max-width: 960px) {
  .aut-row { grid-template-columns: 1fr 1fr 36px; }
  .aut-row input[name=aut_tel] { grid-column: 1 / 3; grid-row: 2; }
  .kid-alerta { flex-wrap: wrap; }
  .kid-alerta .btn { width: 100%; }
  .qr-cod b { font-size: 30px; }
  .sala-n { font-size: 20px; }
}
.kid-alerta .grow { flex: 1; min-width: 0; }
.kid-card .grow, .ck .grow { min-width: 0; }
@media (max-width: 960px) {
  .chamados .li { flex-wrap: wrap; row-gap: 8px; }
  .chamados .li .grow { flex: 1 1 calc(100% - 50px); }
  .chamados .li .tag { margin-left: 46px; }
  .chamados .li .btn { margin-left: auto; }
}
@media (max-width: 960px) { .row2.r2b { grid-template-columns: 1fr; } }


/* ---------- Sara Kids: tema colorido ---------- */
.kword { font-family: 'Fredoka', 'Poppins', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .01em; display: inline-flex; align-items: baseline; gap: 1px; }
.kword i { font-style: normal; display: inline-block; transform: rotate(var(--r, 0deg)); text-shadow: 0 2px 0 rgba(10,10,10,.08); animation: kbounce .55s cubic-bezier(.3,1.7,.5,1) both; }
.kword i:nth-child(2) { animation-delay: .04s; } .kword i:nth-child(3) { animation-delay: .08s; } .kword i:nth-child(4) { animation-delay: .12s; }
.kword i:nth-child(5) { animation-delay: .16s; } .kword i:nth-child(6) { animation-delay: .2s; } .kword i:nth-child(7) { animation-delay: .24s; }
.kword i:nth-child(8) { animation-delay: .28s; } .kword i:nth-child(9) { animation-delay: .32s; }
.kword .sp { width: .3em; animation: none; }
.kword.sm { font-size: 1.12em; font-weight: 700; letter-spacing: 0; }
.kword.sm i { text-shadow: none; animation: none; }
@keyframes kbounce { from { opacity: 0; transform: translateY(8px) rotate(var(--r, 0deg)) scale(.7); } }
@media (prefers-reduced-motion: reduce) { .kword i { animation: none; } }

.kids-head { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 20px; box-shadow: var(--shadow); overflow: hidden; }
.kids-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #FF4D5A 0 16.66%, #FF9F1C 0 33.33%, #F5B800 0 50%, #1FB58F 0 66.66%, #3A86FF 0 83.33%, #A855F7 0); }
.kids-head::after { content: ''; position: absolute; right: -6px; top: 6px; bottom: 0; width: 280px; background: url(/assets/kids-confete.svg) right center / contain no-repeat; opacity: .9; pointer-events: none; }
.kids-head > * { position: relative; z-index: 1; }
.kids-head .kw-top { flex: 0 0 100%; margin-bottom: 2px; }
.kids-head h1 { font-family: 'Fredoka', 'Poppins', sans-serif; font-weight: 600; letter-spacing: -.005em; font-size: 30px; }
.kids-head .eyebrow { color: var(--ink-2); }
.kids-head .btn { box-shadow: 0 4px 12px -6px rgba(10,10,10,.4); }

.tag.sala-tag { color: var(--sc); background: var(--sb); font-weight: 600; }
.tag.sala-tag::before { background: var(--sc); }
.kid-card { border-top: 5px solid var(--kc, #0A0A0A); border-radius: 18px; }
.kid-card .kid-top .grow b { font-family: 'Fredoka', 'Poppins', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: 0; }
.kid-card .kid-top .grow > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.kid-card .ini.lg { width: 60px; height: 60px; border: 3px solid var(--kc); background: #fff; }
.foto-g { background: #fff; }
.sala { border-top: 5px solid var(--sc); border-radius: 18px; }
.sala-h b { font-family: 'Fredoka', 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: var(--sc); letter-spacing: 0; }
.sala.on { box-shadow: 0 0 0 2px var(--sc), var(--shadow); border-color: var(--sc); background: var(--sb); }
.sala .sala-n { color: var(--ink); }
.qr-card { border-radius: 22px; border-top: 6px solid #3A86FF; }
.qr-cod b { display: inline-flex; gap: .18em; font-family: 'Fredoka', 'Poppins', sans-serif; font-size: 44px; letter-spacing: 0; }
.qr-cod b i { font-style: normal; }
.etiqueta { border-top: 12px solid var(--sc, #0A0A0A); }
.et-nome { font-family: 'Fredoka', 'Poppins', sans-serif; }
@media (max-width: 960px) {
  .kids-head { padding: 24px 18px 18px; border-radius: 20px; }
  .kids-head::after { width: 190px; opacity: .55; }
  .kids-head h1 { font-size: 25px; }
  .kword { font-size: 27px; }
  .kids-head .head-av h1 { font-size: 22px; }
  .kids-head .head-av .sub { margin-top: 6px; }
  .qr-cod b { font-size: 40px; }
}

.sala-av { gap: 6px 8px; }
.sala-av .stack { display: inline-flex; }
.sala-av .stack .ini.sm { margin-right: -9px; }
.sala-av .stack .ini.sm:last-child { margin-right: 0; }
.sala-av .mais { margin: 0; }
.sala-av .tag { margin-left: 0 !important; }
.qr-card { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.qr-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #FF4D5A 0 16.66%, #FF9F1C 0 33.33%, #F5B800 0 50%, #1FB58F 0 66.66%, #3A86FF 0 83.33%, #A855F7 0); }
.qr-cod b { justify-content: center; width: 100%; }
@media (max-width: 960px) {
  .kids-head::after { top: 14px; bottom: auto; height: 62px; width: 150px; right: 6px; opacity: .9; background-position: right top; }
}

/* ---------- símbolo do infinito (TEA) ---------- */
.tea-ico { display: inline-block; width: auto; vertical-align: middle; flex: none; }
.tag.kid-esp.tea { padding-left: 8px; gap: 6px; }
.tag.kid-esp.tea::before { display: none; }
.h3-tea { display: flex; align-items: center; gap: 10px; }
.opt span .tea-ico { margin-right: 6px; }
.opt input:checked + span .tea-ico { filter: drop-shadow(0 0 0 #fff) brightness(1.15); }
.tea-nota { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 2px 0 4px; }
.et-esp .tea-ico { margin-right: 6px; }
.tag.tea-pill { background: #fff; border: 1px solid var(--line); color: var(--ink); gap: 7px; font-weight: 600; box-shadow: 0 1px 0 rgba(10,10,10,.04); }
.tag.tea-pill::before { display: none; }

/* ---------- barra de baixo: página atual em destaque ---------- */
@media (max-width: 960px) {
  .tabbar { padding-top: 8px; }
  .tabbar a { gap: 4px; color: #77776F; font-weight: 500; }
  .tabbar a .ti { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s, color .2s; }
  .tabbar a .ti svg { width: 22px; height: 22px; }
  .tabbar a.on { color: #0A0A0A; font-weight: 700; }
  .tabbar a.on .ti { background: #0A0A0A; color: #fff; }
  .tabbar a:not(.on):active .ti { background: var(--line-2); }
  .tabbar a.main-t span.pill { width: 54px; height: 54px; border-radius: 50%; margin-top: -24px; background: #0A0A0A; color: #fff; box-shadow: 0 0 0 5px #fff, 0 8px 18px -6px rgba(10,10,10,.55); }
  .tabbar a.main-t.on span.pill { box-shadow: 0 0 0 5px #fff, 0 0 0 7px #0A0A0A, 0 8px 18px -6px rgba(10,10,10,.55); }
  .tabbar a.main-t span.pill svg { width: 24px; height: 24px; }
  .tabbar a .kword { font-size: 1.1em; }
}
@media (max-width: 960px) {
  .eq-card { padding: 14px; }
  .eq-card .nm { font-size: 18px; }
  .eq-card .nums { gap: 4px; }
  .eq-card .nums b { font-size: 15px; white-space: nowrap; }
  .eq-card .nums span { font-size: 8.5px; letter-spacing: .02em; white-space: nowrap; }
}

/* ---------- mapa das células ---------- */
.mapa-panel { overflow: hidden; }
.mapa-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 0; margin-top: 14px; border-top: 1px solid var(--line-2); }
.mapa { height: 440px; background: #EEEEEA; position: relative; z-index: 0; }
.mapa .empty { padding-top: 200px; }
.setores { padding: 14px 16px; border-left: 1px solid var(--line-2); max-height: 440px; overflow: auto; }
.setor { display: grid; grid-template-columns: 1fr 60px 24px; align-items: center; gap: 8px; width: 100%; padding: 7px 6px; border-radius: 8px; text-align: left; font-size: 12.5px; }
.setor:hover { background: var(--panel-2); }
.s-nome { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-bar { height: 5px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.s-bar i { display: block; height: 100%; background: #0A0A0A; border-radius: 99px; }
.s-n { text-align: right; font-size: 12px; }
.mapa-nota { font-size: 12px; color: var(--muted); padding: 10px 18px 14px; border-top: 1px solid var(--line-2); }
.pin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); position: relative; }
.legend .pin { width: 12px; height: 12px; border-width: 2px; }
.pin.st-ativa { background: #157F4B; } .pin.st-alerta { background: #D98A00; } .pin.st-inativa { background: #B42318; }
.pin.hoje::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #0A0A0A; animation: pino 1.6s ease-out infinite; }
@keyframes pino { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(10,10,10,.35); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font); }
.pop { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); min-width: 180px; }
.pop b { font-size: 14px; color: var(--ink); }
.pop em { font-style: normal; font-weight: 600; color: var(--ink); }
.pop-l { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); margin: 4px 0; }
.pop-l .pin { width: 11px; height: 11px; border-width: 2px; }
.pop a { margin-top: 6px; font-weight: 600; color: #0A0A0A; border-bottom: 1px solid #C9C9C4; align-self: flex-start; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
@media (max-width: 960px) {
  .mapa-wrap { grid-template-columns: 1fr; }
  .mapa { height: 360px; }
  .setores { border-left: 0; border-top: 1px solid var(--line-2); max-height: none; }
  .mapa-panel .legend { gap: 10px; }
}
.mapa .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }

/* ---------- Revisão: fechamento por equipe ---------- */
.rev-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rev-tabs .seg button { padding: 8px 16px; font-size: 13px; font-weight: 600; }
.rev-filtros { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; }
.rev-li { gap: 10px; flex-wrap: wrap; row-gap: 8px; }
.rev-li .grow { flex: 1 1 200px; }
.rev-acoes { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.conf { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 8px; border-radius: 99px; border: 1.5px solid #C5CBD8; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; }
.conf svg { width: 15px; height: 15px; color: #fff; background: transparent; border-radius: 50%; padding: 1px; opacity: .25; }
.conf.on { background: #0A0A0A; border-color: #0A0A0A; color: #fff; }
.conf.on svg { opacity: 1; }
.rev-lista { max-height: 460px; overflow: auto; }
.rl { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.rl:last-child { border-bottom: 0; }
.rl-n { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-n em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }
.rl-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--line-2); padding: 2px 7px; border-radius: 6px; }
.rev-caixa { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.rev-caixa .grow h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 3px 0; }
.cfg-v { display: flex; flex-direction: column; gap: 8px; }
.cfg-v label { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 10px; font-size: 13px; }
.cfg-v label > span { color: var(--ink-2); }
.rv-print { font-family: var(--font); color: #000; }
.rv-print h2 { font-size: 18px; margin-bottom: 2px; } .rv-print p { font-size: 12px; margin-bottom: 14px; }
.rv-print h3 { font-size: 14px; margin: 14px 0 4px; border-bottom: 1px solid #000; } .rv-print ol { padding-left: 22px; font-size: 12px; columns: 2; }
.rv-print li { margin-bottom: 2px; break-inside: avoid; }
@media (max-width: 960px) {
  .rev-filtros { gap: 16px; }
  .rev-li .grow { flex: 1 1 100%; }
  .rev-acoes { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .rev-tabs .inp.sel { flex: 1; min-width: 0; }
  .cfg-v label { grid-template-columns: 1fr 120px; }
}
.conf svg { color: #B5B5B0; opacity: 1; }
.conf.on svg { color: #fff; }
