@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* Regras do app: alvo de toque mínimo de 52px, letra grande, alto contraste. O visual muda; isso não. */
:root {
  --night: #0a1624; --night-2: #12233a; --night-3: #18304a; --ice: #66d0f2; --ice-deep: #0b6f96; --ice-soft: #e4f5fc;
  --brand: #17256A; --brand-2: #22358f; --brand-soft: #e9ecf9;
  --bg: #f3f6fa; --card: #ffffff; --ink: #0b1726; --muted: #46566c; --line: #dfe6ef; --line-2: #8497ae; --soft: #e8edf4;
  --ok: #0b6e37; --ok-bg: #dff4e7; --warn: #8a4b00; --warn-bg: #fdf1da; --bad: #a8201a; --bad-bg: #fce6e4;
  --grad: radial-gradient(120% 180% at 100% 0%, #1f5f88 0%, rgba(31,95,136,0) 55%), linear-gradient(120deg, var(--night), var(--night-3));
  --blue-bg: #e3f0fb; --radius: 18px; --tap: 64px;
  --shadow: 0 1px 2px rgba(10,22,36,.05), 0 8px 24px rgba(10,22,36,.06);
  --shadow-lg: 0 2px 4px rgba(10,22,36,.08), 0 14px 34px rgba(10,22,36,.14);
  font-size: 19px;
}
html.big { font-size: 22px; }
/* dois toques rápidos não dão zoom; o zoom de pinça continua livre para quem precisa */
* { box-sizing: border-box; touch-action: manipulation; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}
body.has-bar { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.8rem; letter-spacing: -.02em; }
h2 { font-size: 1.22rem; } h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 4px solid var(--ice); outline-offset: 2px; }

/* ícones */
.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.27em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; min-height: 68px;
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--ice), rgba(102,208,242,.08) 70%); }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; min-height: 48px; border-radius: 12px; }
.brand > img { flex: 0 0 auto; width: 46px; height: 29px; }
.brand-word img { display: block; height: 18px; width: auto; }
.top-right { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1; }
.top-btn {
  min-width: 52px; min-height: 52px; border-radius: 14px; border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.07); color: #fff; font-weight: 700; cursor: pointer; padding: 0 12px; font-size: .95rem; transition: background .15s;
}
.top-btn:hover { background: rgba(255,255,255,.15); }
.top-btn span { font-size: 1.3em; margin-left: 1px; }
.top-btn.user { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-btn.user span { font-size: 1em; margin: 0; }
.sync { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.sync::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sync.ok { background: rgba(102,208,242,.14); color: #bfeeff; }
.sync.off { background: #fdf0d8; color: #6b3a00; }
.sync.busy { background: rgba(255,255,255,.1); color: #fff; }
.sync .s, .top-btn.user .s { display: none; }

/* ---------- área principal ---------- */
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; outline: none; }
main.wide { max-width: 1180px; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.step-of { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 4px 12px; font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.02rem; }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 2px 0 20px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2f9fd0 70%, var(--ice)); border-radius: 99px; transition: width .25s ease; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); }
.card.flat { box-shadow: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: var(--tap); padding: 12px 22px; border-radius: 16px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--brand); font-weight: 700; font-size: 1.02rem; cursor: pointer; text-decoration: none;
  line-height: 1.25; transition: transform .06s ease, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--brand); background: #fbfcff; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); border-color: transparent; background-origin: border-box; color: #fff; box-shadow: 0 10px 22px rgba(10,22,36,.24); }
.btn.primary:hover { background: var(--grad); border-color: transparent; box-shadow: 0 14px 30px rgba(10,22,36,.32); }
.btn.primary .i { color: var(--ice); }
.btn.primary.huge .i { width: 1.9em; height: 1.9em; padding: .34em; border-radius: 12px; background: var(--ice); color: var(--night); }
.btn.green { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 6px 16px rgba(11,110,55,.22); }
.btn.green:hover { background: #0a6230; }
.btn.red { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn.red:hover { background: var(--bad-bg); }
.btn.red.solid { background: var(--bad); color: #fff; }
.btn.wa { background: #128C4A; border-color: #128C4A; color: #fff; box-shadow: 0 6px 16px rgba(18,140,74,.24); }
.btn.wa:hover { background: #0f7a40; }
.btn.block { display: flex; width: 100%; }
.btn.huge { min-height: 84px; font-size: 1.15rem; border-radius: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .ico { display: inline-flex; line-height: 1; }
.btn-col { display: grid; gap: 12px; }
.linkbtn { background: none; border: 0; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; min-height: 48px; }

/* início: botões grandes */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 28px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile.main { grid-column: 1 / -1; } }
.tile {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 16px 18px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .15s, border-color .15s;
}
.tile:hover { border-color: #b6c4d6; box-shadow: var(--shadow-lg); }
.tile:active { transform: scale(.99); }
.t-ico { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; }
.t-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.t-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.t-sub { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.t-go { flex: none; color: var(--line-2); display: inline-flex; }
.count { background: var(--ice-soft); color: var(--ice-deep); border-radius: 99px; padding: 1px 10px; font-weight: 700; font-size: .85rem; }
@media (min-width: 620px) {
  .tile:not(.main) { flex-direction: column; align-items: flex-start; min-height: 172px; padding: 20px; }
  .tile:not(.main) .t-go { position: absolute; right: 20px; top: 34px; }
}
.tile.main {
  min-height: 112px; padding: 20px 22px; border: 0; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 180% at 100% 0%, #1f5f88 0%, rgba(31,95,136,0) 55%), linear-gradient(120deg, var(--night), var(--night-3));
  box-shadow: 0 10px 26px rgba(10,22,36,.26);
}
.tile.main:hover { box-shadow: 0 14px 32px rgba(10,22,36,.32); }
.tile.main .t-ico { background: var(--ice); color: var(--night); font-size: 1.45rem; }
.tile.main .t-title { font-size: 1.32rem; }
.tile.main .t-sub { color: #cfe9f6; }
.tile.main .t-go { color: var(--ice); font-size: 1.15rem; }

/* listas de atendimentos */
.list { display: grid; gap: 12px; }
@media (min-width: 900px) { main.wide .list { grid-template-columns: 1fr 1fr; } }
.item {
  display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.item:hover { border-color: #b6c4d6; box-shadow: var(--shadow-lg); }
.item .i-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item .i-name { font-weight: 700; font-size: 1.08rem; }
.item .i-num { color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.item .i-sub { color: var(--muted); font-size: .92rem; margin: 2px 0 10px; }
.item .i-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.item .i-val { font-weight: 700; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 12px; font-size: .85rem; font-weight: 700; }
.badge.grey { background: var(--soft); color: #2e3d52; }
.badge.blue { background: var(--blue-bg); color: #0b4a7a; }
.badge.amber { background: var(--warn-bg); color: var(--warn); }
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.red { background: var(--bad-bg); color: var(--bad); }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.e-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; }

/* busca e campos */
label.lbl, .lbl { display: block; font-weight: 700; margin: 0 0 8px; font-size: 1.02rem; }
.hint { color: var(--muted); font-size: .88rem; margin: -4px 0 8px; }
.field { margin-bottom: 22px; }
.field.missing .lbl { color: var(--bad); }
.field.missing input, .field.missing textarea, .field.missing .chips { outline: 3px solid var(--bad); outline-offset: 3px; border-radius: 12px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], input[type=date], input[type=password], textarea, select {
  width: 100%; min-height: var(--tap); padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff;
  font-size: 1.05rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 4px rgba(102,208,242,.45); }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #6f7d91; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 56px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: background .12s, border-color .12s;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--grad); border-color: transparent; background-origin: border-box; color: #fff; }
.chip.on::before { content: '✓'; font-weight: 700; }
.chip.ok.on { background: var(--ok); border-color: var(--ok); }
.chip.warn.on { background: #b56a00; border-color: #b56a00; }
.chip.bad.on { background: var(--bad); border-color: var(--bad); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 64px; height: 64px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; color: var(--brand); font-size: 1.8rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { border-color: var(--brand); }
.stepper output { min-width: 60px; text-align: center; font-size: 1.6rem; font-weight: 700; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dims span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.cap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.seg button { min-height: 60px; min-width: 70px; border: 0; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; }
.loadbox { background: linear-gradient(120deg, var(--night), var(--night-3)); color: #fff; border-radius: 16px; padding: 16px 18px; }
.loadbox b { color: var(--ice); font-size: 1.4rem; font-family: 'Fraunces', serif; font-weight: 600; }

/* fotos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph button { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10,22,36,.82); color: #fff; font-size: .95rem; cursor: pointer; display: grid; place-items: center; }
.photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-btns > * { min-width: 0; }
.photo-btns input { display: none; }
@media (max-width: 380px) { .photo-btns { grid-template-columns: 1fr; } }

/* tipos de serviço */
.types { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .types { grid-template-columns: 1fr 1fr; } }
.type {
  display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 14px 16px; border-radius: 18px; border: 1px solid #cdd7e3;
  background: #fff; text-align: left; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.type:hover { border-color: var(--brand); }
.type.on { border-color: var(--brand); background: #f3f5fd; box-shadow: inset 0 0 0 2px var(--brand); }
.type .ty-ico { flex: none; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.type.on .ty-ico { background: var(--brand); color: #fff; }
.type b { display: block; font-size: 1.08rem; }
.type span { color: var(--muted); font-size: .9rem; }

/* linha do método */
.method { display: grid; gap: 0; margin: 12px 0 20px; }
.mstep { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.mstep:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.mstep.done:not(:last-child)::after { background: var(--ok); }
.mdot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; background: #fff; border: 2px solid #c4d0de; color: var(--muted); }
.mstep.done .mdot { background: var(--ok); border-color: var(--ok); color: #fff; }
.mstep.now .mdot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(102,208,242,.4); }
.mstep h3 { margin: 9px 0 2px; font-size: 1.1rem; }
.mstep .ms-sub { color: var(--muted); font-size: .92rem; }
.mstep .ms-act { margin-top: 12px; }

/* itens da proposta */
.pitem { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
.pitem .pi-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pitem .tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; }
.tag.servico { background: var(--blue-bg); color: #0b4a7a; } .tag.peca { background: var(--warn-bg); color: var(--warn); }
.pitem .pi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pitem .pi-grid span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; min-width: 52px; min-height: 52px; padding: 0 12px; border-radius: 14px; border: 1.5px solid #d3a7a4; background: #fff; cursor: pointer; font-size: .95rem; color: var(--bad); font-weight: 700; }
.iconbtn:hover { background: var(--bad-bg); }
.total { background: linear-gradient(120deg, var(--night), var(--night-3)); color: #fff; border-radius: 18px; padding: 18px 20px; display: grid; gap: 6px; }
.total .tl { display: flex; justify-content: space-between; gap: 10px; }
.total .tl.big { font-size: 1.4rem; font-family: 'Fraunces', serif; font-weight: 600; color: var(--ice); border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; margin-top: 4px; }

/* checklist de execução */
.check {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px; border-radius: 16px; border: 1px solid #cdd7e3;
  background: #fff; cursor: pointer; text-align: left; margin-bottom: 10px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); transition: background .12s, border-color .12s;
}
.check:hover { border-color: var(--brand); }
.check .box { flex: 0 0 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 1rem; color: #fff; }
.check.on { border-color: #93d0ab; background: var(--ok-bg); box-shadow: none; }
.check.on .box { background: var(--ok); border-color: var(--ok); }
.check .who { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }

/* resumo */
.kv { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 8px 14px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 600; }
.mcard { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: #fff; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.mcard .mc-body { flex: 1; min-width: 0; }
.mcard b { display: block; }

/* barra de ações fixa */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,.9); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(10,22,36,.07);
}
.bar .bar-in { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: 12px; }
.bar .bar-in.one { grid-template-columns: 1fr; }
.bar .btn { min-height: 72px; font-size: 1.08rem; }

/* PIN */
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 360px; margin: 16px auto; }
.pinpad button { height: 78px; border-radius: 18px; border: 1px solid #cdd7e3; background: #fff; font-size: 1.8rem; font-weight: 700; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); }
.pinpad button:hover { border-color: var(--brand); }
.pinpad button.fn { font-size: 1rem; }
.pindots { display: flex; justify-content: center; gap: 16px; margin: 10px 0; }
.pindots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--brand); transition: background .1s; }
.pindots i.on { background: var(--night); border-color: var(--night); }
.login-hero { background: radial-gradient(120% 160% at 100% 0%, #1f5f88 0%, rgba(31,95,136,0) 55%), linear-gradient(120deg, var(--night), var(--night-3)); color: #fff; border-radius: 24px; padding: 30px 22px; margin-bottom: 22px; text-align: center; box-shadow: 0 10px 26px rgba(10,22,36,.24); }
.login-hero img { height: 70px; width: auto; }
.login-hero p { color: #bfeeff; margin: 10px 0 0; font-size: .92rem; }
.people { display: grid; gap: 12px; }
@media (min-width: 600px) { .people { grid-template-columns: 1fr 1fr; } }
.person { min-height: 76px; border-radius: 18px; border: 1px solid #cdd7e3; background: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: var(--ink); box-shadow: var(--shadow); }
.person:hover { border-color: var(--brand); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #2f6fae); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 48px; }

/* assinatura */
.sig { border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fff; touch-action: none; width: 100%; height: 220px; display: block; }

/* aviso / toast / modal */
.note { border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; font-weight: 600; }
.note.blue { background: var(--blue-bg); color: #093e66; } .note.amber { background: var(--warn-bg); color: #6b3a00; }
.note.green { background: var(--ok-bg); color: #08542a; } .note.red { background: var(--bad-bg); color: #7d1712; }
.toast {
  position: fixed; left: 50%; bottom: calc(130px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); z-index: 60;
  background: var(--night); color: #fff; padding: 16px 22px; border-radius: 18px; font-weight: 700; font-size: 1.05rem;
  opacity: 0; pointer-events: none; transition: .25s ease; max-width: calc(100% - 32px); width: max-content; text-align: center;
  box-shadow: 0 0 0 2px var(--ice), 0 14px 34px rgba(0,0,0,.28);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { box-shadow: 0 0 0 2px #ff8a80, 0 14px 34px rgba(0,0,0,.28); }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(10,22,36,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .box { background: #fff; border-radius: 24px; padding: 26px 22px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(10,22,36,.32); }
.modal .box h2 { margin-bottom: 10px; font-size: 1.32rem; }
.modal .box .btn-col { margin-top: 18px; }

.loading { text-align: center; padding: 40px 10px; font-weight: 700; color: var(--muted); }
.spin { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--brand); animation: sp 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes sp { to { transform: rotate(360deg); } }
.pdfready { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.pdfready .pi { width: 50px; height: 62px; border-radius: 10px; background: linear-gradient(160deg, var(--night), var(--night-3)); color: var(--ice); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: 0 0 50px; }
.pdfready b { display: block; word-break: break-word; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.filters .chip { flex: 0 0 auto; min-height: 50px; }

@media (max-width: 480px) {
  .sync .l, .top-btn.user .l { display: none; }
  .sync .s, .top-btn.user .s { display: inline; }
  .top-btn.user { min-width: 52px; padding: 0 8px; }
  .top { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .top-right { gap: 6px; }
}
@media (max-width: 420px) {
  :root { font-size: 18px; }
  html.big { font-size: 21px; }
  .brand-word { display: none; }
  .sync { font-size: .72rem; padding: 6px 10px; }
  h1 { font-size: 1.6rem; }
  .bar .bar-in { grid-template-columns: minmax(96px, 1fr) 2fr; }
  .card { padding: 16px; }
}
@media (min-width: 1000px) {
  main { padding-top: 34px; }
  .bar .bar-in { max-width: 820px; }
}
@media print { .top, .bar { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
