/* Marca oficial Pegasus, reutilizada do painel existente. */
.reader-actions{display:flex;gap:8px;flex-wrap:wrap}
.card-title-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.card-title-actions .reader-actions{flex-wrap:nowrap}
.people-reader-filter{display:grid;gap:6px;min-width:min(360px,100%)}
.people-reader-filter span{font-size:12px;font-weight:800;color:#62776f}
.people-reader-filter select{width:100%;padding:10px 12px;border:1px solid #cfdcd4;border-radius:10px;background:#fff;color:#173028}
.new-person-options{display:grid;gap:12px;margin:18px 0}.invite-result{text-align:center}.invite-qr{width:min(260px,100%);margin:16px auto;background:white}.invite-qr svg{display:block;width:100%;height:auto}.invite-result .field{text-align:left}
.brand-mark {
  width: 108px !important;
  height: 72px !important;
  color: transparent !important;
  background: #050807 url('./pegasus-logo.png') center / contain no-repeat !important;
  border-radius: 12px !important;
  flex: 0 0 auto;
}

.condo-hero{display:grid;grid-template-columns:minmax(240px,1.2fr) auto;gap:22px;margin:0 0 18px;padding:26px;border:1px solid #1c7047;border-radius:20px;background:linear-gradient(135deg,#0c3a2c,#12583a 62%,#168448);color:#fff;box-shadow:0 16px 38px #123b2b24}
.condo-hero-copy h2{margin:8px 0 2px;font-size:clamp(27px,3vw,38px);line-height:1.1}.condo-hero-copy p{margin:0;color:#cde6d7}.condo-active-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;background:#ffffff18;color:#e6fff0;font-size:11px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.condo-active-badge i,.reader-chip i{width:8px;height:8px;border-radius:50%;background:#67e394;box-shadow:0 0 0 4px #67e39422}.condo-hero-status{display:flex;align-items:center;gap:10px}.condo-hero-status div{min-width:86px;padding:12px 15px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff12}.condo-hero-status strong,.condo-hero-status span{display:block}.condo-hero-status strong{font-size:24px}.condo-hero-status span{font-size:11px;color:#cde6d7;text-transform:uppercase}.condo-hero-status .online strong{color:#7cf0a4}.condo-hero-status .offline strong{color:#ffd0cb}.condo-reader-list{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding-top:17px;border-top:1px solid #ffffff20}.reader-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:10px;background:#ffffff10;font-size:12px;font-weight:700}.reader-chip.offline i{background:#e9aaa4;box-shadow:0 0 0 4px #e9aaa422}.empty-chip{color:#cde6d7}.section-title{display:flex;align-items:end;justify-content:space-between;margin:26px 0 12px}.section-title h2{margin:3px 0 0}.location-state{display:block;margin-bottom:5px;color:#18844a;font-size:11px;font-weight:850;text-transform:uppercase}.location-select{width:100%;margin-top:17px;padding:10px;border:1px solid #bcd9c7;border-radius:10px;background:#f2faf5;color:#116c3a;font-weight:800;cursor:pointer}.location-select:hover{background:#e6f5eb}.access-records{padding:0;overflow:hidden}.access-records-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:20px}.access-records-head h2{margin:3px 0}.access-records-head p{margin:0;color:#6a7e76}.access-records-controls{display:flex;gap:9px;align-items:center}.access-records-controls select{min-width:280px;padding:11px 12px;border:1px solid #cfdcd4;border-radius:11px;background:#fff}.access-records-result{border-top:1px solid #e5eee9}.access-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:30px;color:#47645a}.access-error{margin:18px;padding:12px 14px;border-radius:10px;background:#fff0f0;color:#a32f2f}.pill.denied{background:#fff0ef;color:#aa3434}.access-table .table-subline{display:block;color:#71847d}.empty.compact{padding:24px}
@media(max-width:760px){.condo-hero{grid-template-columns:1fr;padding:20px}.condo-hero-status{display:grid;grid-template-columns:repeat(3,1fr)}.condo-hero-status div{min-width:0}.condo-reader-list{grid-column:1}.access-records-head{align-items:stretch;flex-direction:column}.access-records-controls{align-items:stretch;flex-direction:column}.access-records-controls select{min-width:0;width:100%}}

.backup-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.isup-ready{display:flex;align-items:center;gap:11px;margin:14px 0;padding:13px;border:1px solid #a9d9bd;border-radius:12px;background:#eefaf3;color:#087641}.isup-ready .status-dot{flex:0 0 auto}.isup-ready strong,.isup-ready small{display:block}.isup-ready small{margin-top:3px;color:#557269}

.backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e0e9e4;
  border-radius: 12px;
}

.backup-item strong,
.backup-item small {
  display: block;
}

.backup-item small {
  margin-top: 3px;
  color: #6a7e76;
}

.backup-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.backup-main{display:grid;gap:5px;min-width:0}.backup-main .backup-badges{justify-content:flex-start}.restore-backup{flex:0 0 auto;color:#087641;border-color:#9dcdb2;background:#edf9f2}.restore-backup:hover{background:#dff3e7}.restore-backup:disabled{cursor:not-allowed;opacity:.5}.restore-dialog{width:min(650px,100%)}.restore-options{display:grid;gap:9px;margin:16px 0}.restore-option{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #d9e7df;border-radius:12px;background:#f7fbf8;cursor:pointer}.restore-option input{margin-top:4px;accent-color:#138a4c}.restore-option span,.restore-option strong,.restore-option small{display:block}.restore-option small{margin-top:3px;color:#647970}.restore-option.disabled{opacity:.55;cursor:not-allowed}.restore-warning{padding:12px 14px;border-radius:11px;background:#fff7e7;color:#76510b;line-height:1.45}.restore-confirm{display:flex;align-items:flex-start;gap:9px;font-weight:750}.restore-confirm input{margin-top:3px;accent-color:#138a4c}.restore-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.restore-summary-grid article{padding:15px;border-radius:13px;background:#eff8f2}.restore-summary-grid strong,.restore-summary-grid span{display:block}.restore-summary-grid strong{font-size:27px;color:#087641}.restore-summary-grid span{margin-top:3px;color:#60766d;font-size:12px}.restore-warnings{margin-top:14px;padding:13px;border-radius:11px;background:#fff7e7;color:#76510b}.restore-warnings ul{margin:7px 0 0;padding-left:20px}.success-note{padding:12px 14px;border-radius:11px;background:#edf9f2;color:#087641;font-weight:750}

.empty.compact {
  padding: 20px;
}

@media(max-width:620px){.backup-item{align-items:stretch;flex-direction:column}.restore-backup{width:100%}.restore-summary-grid{grid-template-columns:1fr 1fr}}

.device-details-dialog {
  width: min(760px, 100%);
}

.device-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.device-detail-summary article {
  padding: 12px;
  border-radius: 12px;
  background: #f2f8f4;
}

.device-detail-summary span,
.device-detail-summary strong {
  display: block;
}

.device-detail-summary span {
  color: #6a7e76;
  font-size: 12px;
}

.device-detail-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e0e9e4;
  border-radius: 12px;
}

.device-detail-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.device-detail-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
}

.device-detail-section dl div {
  min-width: 0;
}

.device-detail-section dt {
  color: #6a7e76;
  font-size: 11px;
  text-transform: uppercase;
}

.device-detail-section dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

@media(max-width: 620px) {
  .device-detail-summary,
  .device-detail-section dl {
    grid-template-columns: 1fr;
  }
}

.sidebar .brand-mark {
  width: 100% !important;
  height: 112px !important;
  border-radius: 0 !important;
  background-size: cover !important;
}

.sidebar .brand {
  justify-content: center;
  width: calc(100% + 32px);
  margin: -24px -16px 22px;
  padding: 0 !important;
  text-align: center;
}

.sidebar .brand > div,
.login-card .brand > div {
  display: none;
}

.login-card .brand {
  justify-content: center;
}

.login-card .brand-mark {
  width: 190px !important;
  height: 128px !important;
}

.brand > div > strong {
  display: none;
}

.mobile-nav {
  display: none;
}

@media (max-width: 920px) {
  .content {
    padding-bottom: 76px;
  }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid #d8e5dd;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 40px rgba(17,46,35,.18);
  }

  .mobile-nav button {
    min-width: 70px;
    padding: 8px 5px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #557068;
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-nav button.active {
    background: #e7f6ec;
    color: #126c3a;
  }
}

.notice.local-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 5px rgba(24,169,87,.12);
}

.local-status.offline {
  border-color: #e2e6e3;
  background: #f5f7f6;
  color: #596c64;
}

.local-status.offline .status-dot {
  background: #8a9993;
  box-shadow: 0 0 0 5px rgba(138,153,147,.12);
}

.local-status strong,
.local-status span {
  display: block;
}

.local-status span {
  margin-top: 2px;
  font-size: 13px;
  opacity: .8;
}

.people-table td:first-child strong,
.people-table td:first-child small {
  display: block;
}

.people-tools,
.people-list-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.people-list-tools {
  padding: 18px 20px 10px;
}

.people-search {
  display: grid;
  gap: 5px;
}

.people-search span {
  color: #668078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.people-search input {
  width: min(280px, 55vw);
  padding: 10px 12px;
  border: 1px solid #cfdcd4;
  border-radius: 11px;
  outline: none;
}

.people-search input:focus {
  border-color: #27a75f;
  box-shadow: 0 0 0 3px #27a75f18;
}

.people-table td:first-child small {
  margin-top: 3px;
  color: #74877f;
}

.people-table .actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.people-list-box {
  padding: 0;
  overflow: hidden;
}

.people-list-box .table-wrap {
  margin: 0;
  padding: 8px 20px 0;
  box-shadow: none;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid #e4ece7;
  background: #fbfdfc;
  color: #62766e;
  font-size: 13px;
}

.table-pagination div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-pagination .secondary {
  padding: 8px 11px;
}

.table-pagination .secondary:disabled {
  opacity: .45;
  cursor: default;
}

.row-action {
  padding: 7px 11px;
  border: 1px solid #bad9c5;
  border-radius: 9px;
  background: #fff;
  color: #126c3a;
  font-weight: 750;
  cursor: pointer;
}

.row-action:hover {
  background: #eaf7ee;
}

.table-subline {
  display: block;
  margin-top: 3px;
  color: #70837b;
  font-size: 12px;
}

.icon-label,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-label svg,
.icon-button svg,
.danger-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #cfe0d6;
  border-radius: 10px;
  background: #fff;
  color: #187347;
  cursor: pointer;
}

.icon-button:hover {
  border-color: #9fc9af;
  background: #eaf7ee;
}

.icon-button.danger {
  margin-left: 6px;
  border-color: #efd2d2;
  color: #b43a3a;
}

.icon-button.danger:hover {
  background: #fff1f1;
}

.danger-button {
  padding: 11px 15px;
  border: 0;
  border-radius: 11px;
  background: #bd3838;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:disabled {
  opacity: .55;
  cursor: wait;
}

.danger-text {
  color: #b43a3a;
}

.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 14px 17px;
  border: 1px solid #b9dfc6;
  border-radius: 13px;
  background: #effaf2;
  color: #176c3d;
  box-shadow: 0 18px 50px rgba(18,72,45,.2);
}

.success-toast > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #1b9953;
  color: #fff;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(8, 25, 20, .38);
  backdrop-filter: blur(3px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  width: min(330px, calc(100vw - 40px));
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: #173a29;
  box-shadow: 0 22px 65px rgba(4, 25, 15, .28);
}

.loading-spinner {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  border: 3px solid #d4eadc;
  border-top-color: #17904e;
  border-radius: 50%;
  animation: loading-spin .75s linear infinite;
}

.loading-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 5px;
  background: #e6f1e9;
}

.loading-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #199653;
  animation: loading-slide 1.1s ease-in-out infinite;
}

.boot::after {
  content: '';
  display: block;
  width: 150px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #dcece1 0 28%, #18924f 50%, #dcece1 72% 100%);
  background-size: 220% 100%;
  animation: loading-background 1.1s linear infinite;
}

@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-slide { from { transform: translateX(-120%); } to { transform: translateX(250%); } }
@keyframes loading-background { to { background-position: -220% 0; } }

.people-feedback {
  margin: -10px 0 18px;
  padding: 11px 14px;
  border-radius: 10px;
}

.people-feedback.warning {
  background: #fff8e7;
  color: #7a5a11;
}

.reader-source {
  display: grid;
  gap: 3px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #eef8f1;
}

.reader-source span {
  color: #698078;
  font-size: 12px;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.person-cell > span:last-child {
  display: grid;
  gap: 3px;
}

.reader-user-number {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid #d7e8dc;
  border-radius: 8px;
  background: #f2f9f4;
  color: #164f34;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.person-avatar,
.edit-photo-preview {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cde2d5;
  border-radius: 50%;
  background: #e9f6ed;
  color: #176d42;
  font-size: 12px;
  font-weight: 800;
}

.person-avatar img,
.edit-photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid #dbe8e0;
  border-radius: 12px;
  background: #f7fbf8;
}

.edit-photo-preview {
  width: 64px;
  height: 64px;
  font-size: 16px;
}

.photo-choice {
  display: grid;
  flex: 1;
  gap: 8px;
}

.photo-choice > strong {
  color: #24382f;
  font-size: 13px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #178d4d;
  border-radius: 10px;
  background: #178d4d;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.photo-action.secondary-photo {
  border-color: #bdd7c6;
  background: #fff;
  color: #176d42;
}

.photo-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.photo-choice small,
.field small {
  color: #6b7d75;
  font-size: 11px;
}

@media (max-width: 520px) {
  .photo-editor {
    align-items: flex-start;
  }

  .photo-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .photo-action {
    width: 100%;
  }
}

.empty strong,
.empty span {
  display: block;
}

.discovery-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  border-color: #b9dec7;
  background: linear-gradient(135deg, #f7fcf8, #fff);
}

.discovery-panel h2 { margin: 4px 0 6px; }
.discovery-panel p { margin: 0; color: #5b6f66; font-size: 13px; line-height: 1.5; }
.discovery-list { display: grid; gap: 8px; }
.discovered-device, .discovery-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe8df;
  border-radius: 12px;
  background: #fff;
}
.discovered-device > div { display: grid; gap: 3px; }
.discovered-device .pill { width: max-content; }
.discovered-device small { color: #6b7d75; }
.pill.waiting { color: #8a5a00; background: #fff3d1; }
.discovery-empty { justify-content: flex-start; color: #61746b; font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a9b8b0; }

.route-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #61746b; }
.route-loading .loading-spinner { position: static; width: 24px; height: 24px; }

@media (max-width: 760px) {
  .discovery-panel { grid-template-columns: 1fr; }
  .discovered-device { align-items: stretch; flex-direction: column; }
}

.empty span {
  margin-top: 5px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .people-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .people-list-tools {
    align-items: stretch;
  }

  .people-search input {
    width: 100%;
  }

  .table-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .table-pagination div {
    justify-content: space-between;
  }

  .people-table th:nth-child(3),
  .people-table td:nth-child(3) {
    display: none;
  }

  .people-table th:nth-child(2),
  .people-table td:nth-child(2) {
    display: none;
  }

  .people-table th,
  .people-table td {
    padding: 11px 8px;
  }
}
