* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --azul: #3d6fa5;
  --azul-escuro: #2d5d90;
  --texto: #23384b;
  --muted: #7f8791;
  --bg: #f2f2f2;
  --input: #e9e9e9;
  --borda: #d8dce0;
  --verde: #1d7a40;
  --verde-bg: #dff2e5;
  --amarelo: #9a6a00;
  --amarelo-bg: #fff3d8;
  --shadow: 0 10px 30px rgba(14, 30, 45, .10);
}
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: 'Source Sans Pro';
  background:
    repeating-linear-gradient(120deg, rgba(0,0,0,.018) 0, rgba(0,0,0,.018) 2px, transparent 2px, transparent 18px),
    #f3f3f3;
  color: var(--texto);
}
body {
  display: flex;
  justify-content: center;
}
.hidden { display: none !important; }
.desktop-block {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.desktop-block-card {
  max-width: 420px;
  background: white;
  border: 1px solid var(--borda);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.desktop-block-card h2 {
  font-size: 24px;
  color: var(--azul-escuro);
  margin-bottom: 10px;
}
.desktop-block-card p {
  font-size: 16px;
  color: #6d7882;
  line-height: 1.5;
}
.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  background: transparent;
}
.screen {
  min-height: 100vh;
  padding: 0 18px 26px;
}
.statusbar {
  height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px 0;
  font-weight: 700;
  color: #111;
  font-size: 18px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.icon-bars {
  display: inline-flex;
  gap: 2px;
  align-items: end;
  height: 14px;
}
.icon-bars span {
  width: 4px;
  background: #111;
  border-radius: 2px;
  display: block;
}
.icon-bars span:nth-child(1) { height: 6px; opacity: .6; }
.icon-bars span:nth-child(2) { height: 9px; opacity: .75; }
.icon-bars span:nth-child(3) { height: 12px; opacity: .9; }
.icon-bars span:nth-child(4) { height: 14px; }
.icon-battery {
  width: 32px;
  height: 17px;
  border: 2px solid #111;
  border-radius: 5px;
  position: relative;
}
.icon-battery::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 4px;
  width: 3px;
  height: 7px;
  background: #111;
  border-radius: 0 2px 2px 0;
}
.icon-battery::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 9px;
  background: #111;
  border-radius: 2px;
}
.login-wrap {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 92px);
}
.login-logo {
  display: flex;
  justify-content: center;
  margin: 10px 0 30px;
}
.login-logo img {
  width: 100%;
  max-width: 315px;
  height: auto;
  object-fit: contain;
}
.login-subtitle {
  text-align: center;
  font-size: 24px;
  color: #7f7f7f;
  margin-bottom: 18px;
  line-height: 1.25;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 22px;
  color: #111;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  height: 78px;
  border: 0;
  outline: none;
  border-radius: 18px;
  background: #e9e9e9;
  padding: 0 20px;
  font-size: 22px;
  color: #444;
}
.field input::placeholder {
  color: #bbbbbb;
}
.btn-login {
  width: 100%;
  height: 82px;
  border: 0;
  border-radius: 18px;
  background: var(--azul);
  color: white;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 30px;
  box-shadow: var(--shadow);
}
.btn-login:disabled {
  opacity: .7;
}
.login-footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  opacity: .92;
}
.login-footer img {
  width: 150px;
  height: auto;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 12px;
  backdrop-filter: blur(7px);
  background: rgba(243,243,243,.92);
}
.app-top-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.app-top-logo img {
  width: 112px;
  height: auto;
}
.inst-box {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(12,28,40,.05);
}
.inst-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.inst-box span {
  font-size: 13px;
  color: #6b7783;
}
.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.search-row input {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #cdd7df;
  background: white;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}
.search-row button {
  width: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--azul);
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid #cfd8e1;
  background: white;
  color: #38536a;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chip.active {
  background: #dceaf6;
  border-color: #8db5d7;
  color: #0c5f97;
}
.list-area {
  padding: 14px 0 22px;
}
.list-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #697582;
}
.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-card {
  background: white;
  border: 1px solid #d8e0e7;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 5px 16px rgba(15, 34, 52, .06);
}
.user-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.user-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #22394d;
}
.user-meta {
  font-size: 13px;
  line-height: 1.35;
  color: #6c7b88;
}
.photo-state {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 10px;
}
.photo-state.done {
  background: var(--verde-bg);
  color: var(--verde);
}
.photo-state.pending {
  background: var(--amarelo-bg);
  color: var(--amarelo);
}
.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.btn {
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: var(--azul);
  color: white;
}
.btn-light {
  background: #eef3f7;
  color: #2e506c;
  padding: 0 14px;
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pager {
  position: sticky;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: white;
  border: 1px solid #d8e0e7;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.pager button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pager .prev {
  background: #edf3f7;
  color: #315168;
}
.pager .next {
  background: var(--azul);
  color: white;
}
.pager-label {
  text-align: center;
  font-size: 13px;
  color: #637382;
  font-weight: 700;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 23, 34, .52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
}
.modal.show { display: flex; }
.modal-card {
  width: 100%;
  max-width: 410px;
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.modal-card h2 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #243c53;
}
.modal-card p {
  font-size: 14px;
  color: #6b7a88;
  margin-bottom: 12px;
}
.camera-preview {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  border: 1px dashed #87a4bc;
  background: linear-gradient(135deg, #dde9f2, #c4d7e7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #3a556d;
  padding: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 700px) and (pointer: coarse) {
  .phone {
    margin: 0;
    max-width: 100%;
  }
  .screen {
    max-width: 540px;
    margin: 0 auto;
  }
  .field input {
    height: 72px;
    font-size: 21px;
  }
  .btn-login {
    height: 76px;
  }
}
@media (hover: hover) and (pointer: fine), (min-width: 1025px) {
  .phone {
    display: none;
  }
  .desktop-block {
    display: flex;
  }
}
