@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: Montserrat;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: Montserrat;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2');
}
:root {
  --paper: #f7f9fc;
  --white: #fff;
  --ink: #0b1626;
  --muted: #5b6b80;
  --line: #e3e9f1;
  --green: #091321;
  --lime: #78b5e7;
  --amber: #996a19;
  --red: #a74039;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.primary,
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 600;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 16px;
}
.danger {
  color: var(--red);
  border: 1px solid #eedbd8;
  background: #fff;
  padding: 9px 12px;
  border-radius: 7px;
}
.link-button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--green);
  font-weight: 600;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 26px;
  padding: 0 8px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 29px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 3px;
}
.brand-mark {
  background: var(--green);
  color: var(--lime);
  border-radius: 10px;
  padding: 11px 9px;
  font:
    20px Montserrat,
    system-ui,
    sans-serif;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin: 45px 10px 11px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin: 4px 0;
  border-radius: 8px;
  color: #63695f;
}
nav a.active {
  background: #eaf2fb;
  color: var(--green);
  font-weight: 600;
}
nav a span {
  font-size: 20px;
  width: 22px;
}
nav b {
  margin-left: auto;
  font-size: 10px;
  background: white;
  border-radius: 6px;
  padding: 2px 7px;
}
.sidebar-note {
  margin-top: auto;
  padding: 20px 10px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--green);
}
.sidebar-note p {
  color: var(--muted);
  line-height: 1.7;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #71916b;
  border-radius: 50%;
  margin-right: 4px;
}
.logout {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  text-align: left;
}
.main-shell {
  min-width: 0;
}
header {
  height: 75px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  font-size: 11px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e6e9df;
  display: grid;
  place-items: center;
  color: var(--green);
}
main {
  padding: 36px 38px 55px;
  max-width: 1500px;
  margin: auto;
  min-height: calc(100vh - 128px);
}
footer {
  padding: 15px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--green);
  margin-bottom: 10px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font:
    38px/1.15 Montserrat,
    system-ui,
    sans-serif;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
h2 {
  font:
    24px/1.2 Montserrat,
    system-ui,
    sans-serif;
  margin: 0 0 15px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 12px;
}
.subtitle {
  color: var(--muted);
  max-width: 670px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 26px 0 31px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf7;
  padding: 18px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  font:
    31px Montserrat,
    system-ui,
    sans-serif;
  display: block;
  margin-top: 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.property-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
}
.building {
  height: 86px;
  width: 86px;
  border-radius: 11px;
  background: #eaf0dc;
  display: grid;
  place-items: center;
}
.building svg {
  width: 48px;
  height: 54px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.6;
}
.property-card h2 {
  margin: 7px 0 8px;
  font-size: 27px;
}
.property-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef2e7;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.pill.pending {
  background: #f7efd9;
  color: var(--amber);
}
.pill.rejected {
  background: #f6e6e3;
  color: var(--red);
}
.guide {
  padding: 24px;
  border-radius: 12px;
  background: #e9edde;
  margin-top: 29px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.guide h2 {
  font-size: 23px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps b {
  display: inline-grid;
  place-items: center;
  border: 1px solid #aebf98;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  color: var(--green);
}
.steps h3 {
  font-size: 12px;
}
.steps p {
  font-size: 11px;
  color: #67735d;
  line-height: 1.7;
}
.units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.unit-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  padding: 20px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.unit-card:hover {
  box-shadow: 0 8px 25px #294b4110;
  transform: translateY(-2px);
}
.unit-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 23px;
}
.unit-card h3 {
  font:
    25px Montserrat,
    system-ui,
    sans-serif;
}
.unit-card .meta {
  border-top: 1px solid #edf0e8;
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.unit-card .link-button {
  display: block;
  margin-top: 15px;
  font-size: 12px;
}
.empty {
  padding: 50px 25px;
  border: 1px dashed #cdd5c4;
  border-radius: 12px;
  background: #fafbf6;
  text-align: center;
}
.empty h2 {
  margin-bottom: 10px;
}
.empty .primary {
  margin-top: 14px;
}
.empty-icon {
  font-size: 35px;
  color: #799267;
  margin-bottom: 12px;
}
.visit-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.visit-bar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.visit-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  min-width: 0;
}
.photo-main {
  background: #eff1e9;
  border-radius: 8px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 13px 0;
}
.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
}
.photo-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.photo-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.thumb {
  width: 69px;
  height: 69px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.thumb.selected {
  border: 2px solid var(--green);
}
.thumb.excluded {
  opacity: 0.35;
}
.photo-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photo-buttons button {
  font-size: 12px;
}
.item-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 11px;
}
.item-card.approved {
  border-left: 3px solid #77966c;
}
.item-card.rejected {
  opacity: 0.55;
}
.item-card .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.item-card h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.item-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.item-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.item-actions button {
  font-size: 11px;
}
.analysis-note {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 0 0 17px;
  line-height: 1.7;
}
.version-row {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 15px 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
}
.version-row strong {
  font-size: 13px;
}
.version-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
label.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0 0;
}
label.field input,
label.field select,
label.field textarea {
  display: block;
  margin-top: 6px;
  border: 1px solid #cfd6c8;
  border-radius: 7px;
  padding: 10px 11px;
  width: 100%;
  background: white;
  color: var(--ink);
}
label.field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  margin: 10px 0;
  color: #50594d;
}
.checkline input {
  margin-top: 3px;
}
.form-note {
  background: #edf1e4;
  border-radius: 7px;
  padding: 13px;
  font-size: 12px;
  color: #566449;
  line-height: 1.7;
}
.error-inline {
  background: #f7e8e4;
  color: var(--red);
  padding: 10px;
  border-radius: 7px;
  font-size: 12px;
  margin: 12px 0;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 22px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  width: min(570px, 94vw);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #17281c70;
}
#toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 13px 20px;
  border-radius: 9px;
  background: #273f35;
  color: white;
  z-index: 10;
  font-size: 12px;
  box-shadow: 0 7px 25px #0002;
}
#toast.error {
  background: #923c35;
}
#testBanner {
  background: #d8aa44;
  color: #292518;
  font-size: 11px;
  text-align: center;
  padding: 7px;
}
.login-wrap {
  max-width: 420px;
  margin: 9vh auto;
}
.login-wrap .panel {
  padding: 32px;
}
.login-wrap h1 {
  font-size: 36px;
}
.login-wrap .primary {
  width: 100%;
  margin-top: 22px;
}
.login-mode .shell {
  display: block;
}
.login-mode aside,
.login-mode header,
.login-mode footer {
  display: none;
}
.login-mode main {
  min-height: 100vh;
}
.paper {
  max-width: 900px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 35px;
}
.paper h1 {
  font-size: 30px;
}
.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 12px;
}
.paper th,
.paper td {
  border-bottom: 1px solid var(--line);
  padding: 12px 9px;
  text-align: left;
  vertical-align: top;
}
.paper th {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.paper-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 25px;
}
.paper-photos img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--paper);
}
.paper-photos figcaption {
  font-size: 11px;
  color: var(--muted);
}
figure {
  margin: 0;
}
.pending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.pending-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 13px;
}
.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.print-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .units {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .property-card {
    grid-template-columns: 70px 1fr;
  }
  .property-card .primary {
    grid-column: 2;
    width: max-content;
  }
  .building {
    width: 65px;
    height: 70px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    padding: 7px;
  }
  .nav-label,
  .sidebar-note,
  .logout {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 15px;
    gap: 8px;
  }
  nav a {
    font-size: 12px;
    padding: 8px;
    flex: 1;
  }
  nav a span {
    font-size: 16px;
  }
  header {
    height: 52px;
    padding: 0 18px;
  }
  .profile {
    display: none;
  }
  main {
    padding: 24px 18px 35px;
  }
  h1 {
    font-size: 31px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head .primary {
    font-size: 12px;
    padding: 10px 13px;
  }
  .units {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .unit-card {
    padding: 15px;
  }
  .unit-top {
    display: block;
  }
  .unit-top .pill {
    margin-top: 5px;
    font-size: 8px;
  }
  .unit-card h3 {
    font-size: 22px;
  }
  .unit-card .meta {
    display: block;
  }
  .unit-card .meta span {
    display: block;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .steps b {
    float: left;
    margin-right: 10px;
  }
  .property-card {
    padding: 18px;
    gap: 14px;
  }
  .property-card h2 {
    font-size: 24px;
  }
  .property-card .primary {
    grid-column: 1/-1;
    width: 100%;
    text-align: center;
  }
  .visit-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .photo-main {
    height: 260px;
  }
  .pending-grid,
  .operation-grid {
    grid-template-columns: 1fr;
  }
  .paper {
    padding: 19px;
  }
  .paper-photos {
    grid-template-columns: 1fr;
  }
  .paper table {
    font-size: 10px;
  }
  .paper th,
  .paper td {
    padding: 9px 4px;
  }
  footer {
    padding: 15px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  body {
    background: white;
  }
  .shell {
    display: block;
  }
  aside,
  header,
  footer,
  .page-head,
  .no-print,
  #testBanner,
  #toast,
  dialog {
    display: none !important;
  }
  main {
    padding: 0;
    min-height: 0;
  }
  .paper {
    border: 0;
    padding: 0;
    max-width: none;
  }
  .paper table {
    font-size: 10px;
  }
  tr,
  figure {
    break-inside: avoid;
  }
  .paper-photos img {
    height: 180px;
  }
}

#breadcrumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 155px);
}
@media (max-width: 700px) {
  #breadcrumb {
    max-width: 100%;
  }
}
.reg-note {
  margin-top: 22px;
}
.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.profile-summary {
  margin: 0;
}
.profile-summary > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.profile-summary dt {
  font-size: 11px;
  color: var(--muted);
}
.profile-summary dd {
  margin: 3px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.document-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin: 14px 0;
}
.document-card .top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.document-card h3 {
  font-size: 14px;
}
.document-card details {
  margin-top: 13px;
}
.guest-page main {
  max-width: 870px;
  min-height: calc(100vh - 140px);
}
.guest-header {
  max-width: 100%;
  height: 86px;
}
.guest-header .brand {
  color: var(--ink);
}
.guest-page fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.guest-page fieldset:disabled input {
  background: #f5f6f1;
  color: #596153;
}
.guest-privacy {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
#guestTestBanner {
  background: #d8aa44;
  padding: 9px;
  text-align: center;
  font-size: 12px;
}
#guestToast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 13px 20px;
  border-radius: 9px;
  background: var(--green);
  color: white;
  z-index: 10;
  font-size: 12px;
}
#guestToast.error {
  background: #923c35;
}
@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
  }
  nav a {
    flex-basis: 40%;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .guest-header {
    padding: 0 18px;
  }
  .guest-page h1 {
    font-size: 30px;
  }
  .version-row {
    flex-wrap: wrap;
  }
  .guest-page .steps {
    grid-template-columns: 1fr;
  }
  .guest-page main {
    padding: 24px 16px;
  }
  .document-card .top {
    flex-wrap: wrap;
  }
}
/* Painel como app no celular: marca no topo e navegação fixa embaixo. */
.install-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--green);
  font-weight: 600;
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  aside {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
    background: #ffffff;
  }
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    margin: 0;
    gap: 0;
    flex-wrap: nowrap;
    padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: saturate(1.5) blur(14px);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
    border-top: 1px solid var(--line);
  }
  nav a {
    position: relative;
    flex: 1 1 0;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 6px 2px;
    font-size: 10.5px;
    text-align: center;
    border-radius: 12px;
    white-space: nowrap;
  }
  nav a.active {
    background: none;
  }
  nav a span {
    width: auto;
    font-size: 19px;
    line-height: 1.2;
  }
  nav b {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    margin: 0;
    background: #a74039;
    color: #fff;
  }
  dialog#modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }
}
.brand-mark {
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.5px;
}
.sheet-scroll {
  overflow: auto;
  max-height: 60vh;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sheet-table {
  border-collapse: collapse;
  font-size: 12px;
}
.sheet-table td {
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Painel de operações */
.pill.ok { background: #e4f0fb; color: #1d4f7a; }
.pill.warn { background: #f7efd9; color: var(--amber); }
.pill.danger { background: #f6e6e3; color: var(--red); }
.dash { display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; }
.kpi:first-child { background: linear-gradient(135deg, #091321, #17304f); color: #fff; border: 0; }
.kpi:first-child span, .kpi:first-child small { color: #b9d6f0; }
.kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; }
.kpi strong { font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 800; }
.kpi small { font-size: 11px; color: var(--muted); }
.kpi small.up { color: #1f7a4d; }
.kpi small.down { color: var(--red); }
.kpi.neg strong { color: var(--red); }
.kpi.warn { border-color: #e9cf8f; }
.ring-bar, .bar-track { height: 6px; border-radius: 6px; background: rgba(120, 181, 231, 0.25); overflow: hidden; }
.ring-bar i, .bar-track i { display: block; height: 100%; background: var(--lime); border-radius: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.dash-grid .panel { margin: 0; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.col { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; font-size: 11px; color: var(--muted); }
.col-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.col-bars i { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.col-bars .in, .legend .in { background: var(--lime); }
.col-bars .out, .legend .out { background: #091321; }
.legend { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.legend span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; background: var(--white); }
.kit.on { border-left: 4px solid var(--lime); }
.kit.off { border-left: 4px solid #d5dde8; }
.kit header { display: flex; justify-content: space-between; align-items: center; }
.kit p { margin: 0; font-size: 13px; }
.kit .alert { color: var(--amber); }
.kit footer { display: flex; gap: 10px; font-size: 12px; }
.kit footer a { color: #1d4f7a; font-weight: 600; }
.issue { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.issue .pill { margin-right: 6px; }
.issue p { margin: 4px 0 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--paper); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.lane h3 { margin: 0; font-size: 13px; display: flex; justify-content: space-between; }
.card-m { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; }
.card-m p { margin: 4px 0 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head select, .filters select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: 12px; background: var(--white); }
.sheet-table td.neg { color: var(--red); white-space: nowrap; }
.sheet-table td.pos { color: #1f7a4d; white-space: nowrap; }
.ops-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.ops-tabs button { flex: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ops-tabs button.active { background: #091321; color: #fff; border-color: #091321; }
.kit-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.kit header { gap: 8px; flex-wrap: wrap; }
.kit header b { white-space: nowrap; }
.ops-props { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ops-props a, .ops-props span { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.ops-props span.active { background: linear-gradient(135deg, #091321, #17304f); color: #fff; border: 0; }
