
/* ============================================================
   RAS ÍRIS · Painel do condomínio — estrutura Genspark operacional
   Base: identidade atual (Inter + Space Grotesk, superfícies claras,
   destaques verdes) reorganizada em camadas de decisão.
   ============================================================ */

@font-face {
  font-family: Inter;
  src: url('/assets/website-genspark/fonts/inter-variable-latin.woff2') format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url('/assets/website-genspark/fonts/space-grotesk-variable-latin.woff2') format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f2f5f0;
  --surface: #ffffff;
  --surface-2: #fafbf8;
  --line: #e3e8e1;
  --line-2: #cdd8cd;
  --ink: #0f1a15;
  --ink-2: #34453c;
  --muted: #6b7a71;
  --brand: #0b3b2c;
  --brand-2: #175f46;
  --brand-soft: #e8f1ea;
  --accent: #c9e27a;

  --condo: #1b6a4f;      --condo-bg: #e7f1ea;
  --parc: #39497e;       --parc-bg: #eaeef9;
  --ras: #71572f;        --ras-bg: #f5eedf;
  --morador: #47564e;    --morador-bg: #edf1ee;

  --late: #a22626;       --late-bg: #fbe9e9;
  --soon: #9a6100;       --soon-bg: #fcf1da;
  --ok: #2c6b45;         --ok-bg: #e9f3ec;

  --r-lg: 16px;
  --r-md: 11px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(15, 26, 21, .04), 0 1px 0 rgba(15, 26, 21, .03);
  --shadow-2: 0 18px 40px -24px rgba(11, 59, 44, .45), 0 2px 8px rgba(11, 59, 44, .06);
  --rail: 252px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.018em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2.5px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px;
  background: var(--brand); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ---------------- shell ---------------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--brand); color: #eaf1ec; padding: 20px 14px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.rail__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.rail__logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 9px; padding: 3px; }
.rail__brand strong { display: block; font-family: var(--display); font-size: 15px; letter-spacing: .06em; }
.rail__brand span { display: block; font-size: 11px; color: #a9c2b4; letter-spacing: .02em; }

.condoswitch {
  position: relative; text-align: left; width: 100%; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md); padding: 10px 30px 10px 12px; color: #fff;
}
.condoswitch:hover { background: rgba(255, 255, 255, .12); }
.condoswitch__label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #9fbcac; }
.condoswitch__name { display: block; font-family: var(--display); font-size: 14px; margin-top: 2px; }
.condoswitch__meta { display: block; font-size: 11px; color: #a9c2b4; margin-top: 2px; }
.condoswitch__caret { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: #a9c2b4; }

.rail__nav { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nav-group__title {
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  color: #86a595; padding: 0 8px; margin-bottom: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--r-sm); text-decoration: none; color: #dbe8e1;
  font-size: 13.5px; line-height: 1.2; transition: background .12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); }
.nav-item__icon { width: 18px; text-align: center; color: #8fb3a1; font-size: 13px; }
.nav-item__label { flex: 1; }
.nav-item__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #24340c; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-item__count--quiet { background: rgba(255, 255, 255, .16); color: #eaf1ec; }
.nav-item__count { flex: 0 0 auto; margin-left: auto; }
.nav-item--soft .nav-item__count { min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
.nav-item.is-active { background: #fff; color: var(--brand); font-weight: 600; }
.nav-item.is-active .nav-item__icon { color: var(--brand-2); }
.nav-item.is-active .nav-item__count { background: var(--brand); color: #fff; }
.nav-item .nav-item__count--late,
.nav-item.is-active .nav-item__count--late { background: var(--late); color: #fff; }
.nav-item--soft { font-size: 12.5px; padding: 6px 10px; color: #b9cfc2; }

.rail__foot { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.whoami { display: flex; gap: 9px; align-items: center; }
.whoami__avatar, .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #d6e8db; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none;
}
.whoami strong { display: block; font-size: 12.5px; }
.whoami span { display: block; font-size: 10.5px; color: #9fbcac; }
.rail__note { font-size: 10.5px; color: #8aa797; line-height: 1.5; margin-top: 10px; }

/* ---------------- topbar ---------------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 12px 26px; background: rgba(242, 245, 240, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__menu { display: none; }
.topbar__shift { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(44, 107, 69, .15); }
.searchbtn {
  margin-left: auto; display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 10px 7px 13px; color: var(--muted); font-size: 12.5px; min-width: 320px;
}
.searchbtn:hover { border-color: var(--brand-2); color: var(--ink-2); }
.searchbtn svg { width: 15px; height: 15px; flex: none; }
.searchbtn span { flex: 1; text-align: left; }
kbd {
  font-family: var(--font); font-size: 10.5px; background: var(--surface-2);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted);
}
.badge-demo {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--ras); background: var(--ras-bg); border: 1px solid #e5d8bd; border-radius: 999px; padding: 4px 9px;
}

.view { padding: 26px 26px 60px; max-width: 1320px; width: 100%; outline: none; }
.view[hidden] { display: none; }

/* ---------------- tipografia / cabeçalhos ---------------- */
.eyebrow {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 600;
}
.view__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.view__head h1 { font-size: 28px; line-height: 1.15; margin-top: 6px; }
.view__sub { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; max-width: 62ch; }
.view__actions { display: flex; gap: 8px; align-items: center; }
.mapall { font-size: 12px; color: var(--muted); }

/* ---------------- botões ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  transition: border-color .12s ease, background .12s ease, transform .06s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; }
.btn--lime { background: var(--accent); border-color: #b7d061; color: #23320a; }
.btn--sm { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; }
.btn--icon { padding: 7px; }
.iconbtn {
  border: 1px solid var(--line); background: var(--surface); width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.iconbtn:hover { border-color: var(--brand-2); }

/* ---------------- faixa do turno ---------------- */
.shiftbar {
  background: var(--brand); color: #eaf1ec; border-radius: var(--r-lg);
  padding: 16px 20px 14px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.shiftbar::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(201, 226, 122, .22), transparent 65%);
}
.shiftbar__top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.shiftbar__title { font-family: var(--display); font-size: 19px; color: #fff; }
.shiftbar__meta { font-size: 12px; color: #a9c2b4; }
.shiftbar__track { position: relative; height: 34px; margin-top: 14px; }
.shiftbar__line {
  position: absolute; left: 0; right: 0; top: 14px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.12)); border-radius: 2px;
}
.shiftbar__hour { position: absolute; top: 22px; font-size: 10px; color: #8fae9d; transform: translateX(-50%); }
.shiftbar__now {
  position: absolute; top: 4px; width: 3px; height: 22px; background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(201, 226, 122, .18);
}
.shiftbar__pin {
  position: absolute; top: 9px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--late); transform: translateX(-50%);
}
.shiftbar__pin--ok { border-color: var(--accent); }
.shiftbar__pin--soon { border-color: #f3c56b; }

/* ---------------- pulso ---------------- */
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.pulse__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.pulse__label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pulse__value { font-family: var(--display); font-size: 26px; line-height: 1.15; margin-top: 6px; letter-spacing: -.02em; }
.pulse__value small { font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.pulse__foot { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.pulse__foot b { font-weight: 600; }
.pulse__spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; position: absolute; right: 14px; bottom: 12px; opacity: .8; }
.pulse__spark i { width: 4px; background: var(--brand-soft); border-radius: 2px; display: block; }
.pulse__spark i.hot { background: var(--brand-2); }

/* ---------------- painel / seções ---------------- */
.section { margin-bottom: 24px; }
.section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.section__head h2 { font-size: 17px; }
.section__head .hint { font-size: 12px; color: var(--muted); }
.section__head .spacer { flex: 1; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h3 { font-size: 15px; }
.panel__head .spacer { flex: 1; }
.panel__body { padding: 16px; }
.panel__foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------- fila do turno ---------------- */
.fila__toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.segmented button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.selectmini {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 7px 11px; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.fila { display: flex; flex-direction: column; gap: 14px; }
.fila__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.fila__grouphead {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.fila__grouphead h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.fila__grouphead .n { font-size: 11.5px; color: var(--muted); }
.fila__grouphead .spacer { flex: 1; }
.tag-now { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--late); }
.tag-today { color: var(--soon); }
.tag-week { color: var(--muted); }

.item {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: stretch;
  border-bottom: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: background .1s ease;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: #f8faff; }
.item:focus-visible { outline-offset: -3px; }
.item__bar { background: var(--line-2); }
.item--late .item__bar { background: var(--late); }
.item--soon .item__bar { background: #e0a33a; }
.item--ok .item__bar { background: #8fbfa2; }
.item__main { padding: 12px 16px 12px 14px; min-width: 0; }
.item__title { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.item__meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item__meta .sep { color: var(--line-2); }
.item__side { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 8px; }
.item__prazo { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.item__prazo--late { color: var(--late); }
.item__prazo--soon { color: var(--soon); }
.item__prazo--ok { color: var(--muted); }
.item__valor { font-family: var(--display); font-size: 13px; min-width: 78px; text-align: right; white-space: nowrap; }
.item__valor small { display: block; font-family: var(--font); font-size: 10px; color: var(--muted); font-weight: 400; }

/* ---------------- chips ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--condo { color: var(--condo); background: var(--condo-bg); }
.chip--parceiro { color: var(--parc); background: var(--parc-bg); }
.chip--ras { color: var(--ras); background: var(--ras-bg); }
.chip--morador { color: var(--morador); background: var(--morador-bg); }
.chip--plain { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.chip--plain::before { display: none; }
.chip--late { color: var(--late); background: var(--late-bg); }
.chip--soon { color: var(--soon); background: var(--soon-bg); }
.chip--ok { color: var(--ok); background: var(--ok-bg); }
.chip--proposta { color: #6a3d8f; background: #f1e9f8; border-color: #e2d2ef; }
.chip--proposta::before { display: none; }
.chip--sm { font-size: 10.5px; padding: 2px 7px; }

/* ---------------- tabelas ---------------- */
.table th:last-child, .table td:last-child { padding-left: 6px; padding-right: 12px; }
.table td .btn--sm { padding: 3px 7px; font-size: 11px; }
.table td[style*="text-align:right"] { white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.table { font-size: 12.5px; }
.table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #f8faff; }
.table tbody tr:focus-visible { outline-offset: -2px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--display); }
.table .strong { font-weight: 600; }
.table .sub { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ---------------- filtros ---------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input {
  font: inherit; font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--line-2);
  border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 0;
}
.input:focus { border-color: var(--brand-2); outline: 2px solid rgba(10, 92, 216, .18); outline-offset: 0; }
.input--search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='8' cy='8' r='5.2' fill='none' stroke='%236b7a71' stroke-width='1.6'/%3E%3Cpath d='M12 12l4 4' stroke='%236b7a71' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 9px 50%; background-size: 15px; padding-left: 30px;
}
textarea.input { resize: vertical; min-height: 62px; }
.checkline { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }

/* ---------------- abas ---------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; padding: 9px 13px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------- pulso de área / panorama ---------------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.panorama { font-size: 12.5px; }
.panorama td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.panorama tr:last-child td { border-bottom: 0; }
.panorama tbody tr { cursor: pointer; }
.panorama tbody tr:hover { background: #f8faff; }

.plantao { display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.person:last-child { border-bottom: 0; }
.person__info { flex: 1; min-width: 0; }
.person__info strong { display: block; font-size: 12.5px; }
.person__info span { font-size: 11.5px; color: var(--muted); }

.legend { display: flex; flex-direction: column; gap: 8px; }
.legend div { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--ink-2); }

/* ---------------- tree (estrutura) ---------------- */
.tree { display: flex; flex-direction: column; gap: 4px; }
.tree__node {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
}
.tree__node:hover { background: var(--surface-2); }
.tree__node[aria-pressed="true"] { background: var(--brand-soft); border-color: #cfe2d5; font-weight: 600; }
.tree__node .n { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ---------------- cards de entrega ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dcard {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: var(--surface);
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left;
}
.dcard:hover { border-color: var(--brand-2); }
.dcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dcard__id { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.dcard__title { font-size: 13px; font-weight: 600; }
.dcard__meta { font-size: 11.5px; color: var(--muted); }
.dcard__age { font-family: var(--display); font-size: 20px; }
.dcard--late .dcard__age { color: var(--late); }
.dcard--soon .dcard__age { color: var(--soon); }

/* ---------------- fluxo de responsabilidade ---------------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flow__step {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: var(--surface-2); position: relative;
}
.flow__step h4 { font-size: 12.5px; margin-bottom: 4px; }
.flow__step p { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.flow__step::after {
  content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  color: var(--line-2); font-size: 13px; z-index: 2;
}
.flow__step:last-child::after { display: none; }
.flow__step--condo { border-color: #cfe2d5; background: var(--condo-bg); }
.flow__step--parc { border-color: #d8def0; background: var(--parc-bg); }
.flow__step--ras { border-color: #e5d8bd; background: var(--ras-bg); }

/* ---------------- estados ---------------- */
.state {
  border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 28px 20px;
  text-align: center; background: var(--surface-2); color: var(--muted);
}
.state h3 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.state p { font-size: 12.5px; max-width: 46ch; margin: 0 auto 12px; }
.state--error { border-color: #eccfcf; background: var(--late-bg); color: #7d3a3a; }
.state--error h3 { color: var(--late); }

.skel { background: linear-gradient(90deg, #eef1ec 25%, #f6f8f4 50%, #eef1ec 75%); background-size: 300% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel--line { height: 12px; margin-bottom: 10px; }
.skel--card { height: 92px; border-radius: var(--r-md); }

.draftbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fffbe9; border: 1px solid #ecdfae; color: #6a5714;
  padding: 9px 13px; border-radius: 9px; font-size: 12px; margin-bottom: 12px;
}

/* ---------------- drawer ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(9, 25, 19, .38); z-index: 40; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 96vw); z-index: 50;
  background: var(--surface); box-shadow: var(--shadow-2); display: flex; flex-direction: column;
  animation: slide .18s ease;
}
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 19px; margin-top: 4px; }
.drawer__body { padding: 18px 20px 40px; overflow-y: auto; }
.drawer__body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.drawer__body h4:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 18px; border-left: 1.5px solid var(--line); margin-left: 4px; font-size: 12px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-2);
}
.timeline time { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; margin-bottom: 1px; }
.drawer__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.note {
  font-size: 11.5px; color: var(--muted); line-height: 1.5; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-top: 14px;
}
.note strong { color: var(--ink-2); }

/* ---------------- modal / palette / toast ---------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(9, 25, 19, .42); padding: 20px; }
.modal__box { background: var(--surface); border-radius: var(--r-lg); padding: 22px; width: min(460px, 100%); box-shadow: var(--shadow-2); }
.modal__box h2 { font-size: 18px; }
.modal__box p { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.palette { position: fixed; inset: 0; z-index: 70; background: rgba(9, 25, 19, .42); padding: 10vh 20px 20px; display: flex; justify-content: center; align-items: flex-start; }
.palette__box { background: var(--surface); border-radius: var(--r-lg); width: min(640px, 100%); box-shadow: var(--shadow-2); overflow: hidden; }
.palette__field { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.palette__field svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.palette__field input { flex: 1; border: 0; font: inherit; font-size: 14.5px; outline: none; background: transparent; }
.palette__results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.presult {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.presult:hover, .presult.is-sel { background: var(--brand-soft); }
.presult__type { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 74px; }
.presult__sub { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.palette__empty { padding: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--brand); color: #fff; border-radius: 10px; padding: 11px 15px; font-size: 12.5px;
  box-shadow: var(--shadow-2); display: flex; align-items: center; gap: 9px; max-width: 380px;
  animation: rise .18s ease;
}
.toast small { display: block; color: #b6cec1; font-size: 10.5px; margin-top: 2px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.split { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }

/* ---------------- responsivo ---------------- */
@media (max-width: 1120px) {
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step::after { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 65; transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .rail.is-open { transform: none; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar__menu { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
  .topbar__menu svg { width: 18px; height: 18px; }
  .topbar__shift { font-size: 11.5px; }
  .searchbtn { min-width: 0; padding: 7px 9px; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .badge-demo { display: none; }
  .view { padding: 16px 14px 60px; }
  .view__head h1 { font-size: 23px; }
  .item { grid-template-columns: 4px minmax(0, 1fr); }
  .item__side { grid-column: 2; padding: 0 16px 12px 14px; justify-content: space-between; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .pulse { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pulse__value { font-size: 22px; }
}
@media (max-width: 560px) {
  .pulse { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- inventário da estrutura ---------------- */
.torre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); margin-bottom: 12px; overflow: hidden; }
.torre__head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.torre__id { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; flex: none; }
.torre__nome { font-family: var(--display); font-size: 15px; }
.torre__meta { font-size: 11.5px; color: var(--muted); }
.torre__head .spacer { flex: 1; }
.torre__body { padding: 6px 16px 12px; }
.andar { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.andar:last-child { border-bottom: 0; }
.andar__rot { font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding-top: 5px; display: flex; align-items: center; gap: 6px; }
.andar__n { font-size: 10px; color: var(--muted); font-weight: 500; }
.units { display: flex; flex-wrap: wrap; gap: 6px; }
.unit {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px;
  padding: 5px 9px; font-size: 11.5px; cursor: pointer; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2);
}
.unit:hover { border-color: var(--brand-2); }
.unit:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.unit--ocupada { background: var(--ok-bg); border-color: #cfe2d5; color: #1b4a33; font-weight: 600; }
.unit--ocupada::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.unit--vazia { color: var(--muted); border-style: dashed; }
.unit--nova { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); font-weight: 600; animation: pulse-in .5s ease; }
@keyframes pulse-in { from { transform: scale(.94); } to { transform: none; } }
.inv-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; margin-top: 8px; border: 1px solid var(--line); }
.inv-bar i { display: block; height: 100%; }
.inv-bar i.ocupada { background: var(--brand-2); }
.inv-bar i.vazia { background: #dfe6dc; }
.inv-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.inv-legend b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 560px) {
  .andar { grid-template-columns: 1fr; gap: 4px; }
  .andar__rot { padding-top: 0; }
}

/* ---------------- cadastro de morador na estrutura ---------------- */
.tr--nova { background: #f2f8f3; }
.tr--nova:hover { background: #ecf5ee; }
.nm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-unitinfo {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px;
  padding: 9px 11px; font-size: 12px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5;
}
@media (max-width: 560px) { .nm-grid { grid-template-columns: 1fr; } }

/* ---------------- ambientes ---------------- */
.amb { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.planta__cap { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.planta { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 8px; }
.zona {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2);
  padding: 9px 10px; cursor: pointer; text-align: left; gap: 2px; min-width: 0;
  grid-column: span 2; transition: border-color .12s ease, background .12s ease, transform .06s ease;
}
.zona:hover { border-color: var(--brand-2); background: #fff; }
.zona:active { transform: translateY(1px); }
.zona.is-sel { border-color: var(--brand); border-width: 2px; background: var(--brand-soft); box-shadow: inset 0 0 0 1px #fff; }
.zona__top { display: flex; align-items: baseline; gap: 6px; justify-content: space-between; }
.zona__nome { font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.zona__n { font-family: var(--display); font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.zona--warn .zona__n { background: var(--soon-bg); border-color: #eccf9d; color: var(--soon); }
.zona--late .zona__n { background: var(--late); border-color: var(--late); color: #fff; }
.zona__n--zero { color: var(--muted); font-family: var(--font); font-weight: 600; }
.zona__meta { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zona__foot { font-size: 11px; color: var(--ink-2); }
.zona--late { border-color: #e3bcbc; }
.zona--late .zona__foot { color: var(--late); }
.zona--ok { background: #f8faff; }
.zona--portaria { grid-column: span 3; background: #fff; }
.zona--garagem { grid-column: span 3; }
.zona--casa-maquinas { grid-column: span 2; }
.zona--deposito { grid-column: span 2; }
.zona--jardim { grid-column: span 2; }
.zona--salao { grid-column: span 6; grid-auto-rows: 62px; }
.zona--torre-a, .zona--torre-b, .zona--torre-c { grid-row: span 1; }

@media (max-width: 1180px) { .amb { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .planta { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .zona, .zona--portaria, .zona--garagem, .zona--casa-maquinas, .zona--deposito, .zona--jardim, .zona--salao { grid-column: span 2; min-height: 84px; }
}
.amb__itens { display: flex; flex-direction: column; gap: 10px; }
.ambitem { border: 1px solid var(--line); border-left-width: 3px; border-radius: 9px; padding: 11px 12px; background: var(--surface); }
.ambitem--late { border-left-color: var(--late); }
.ambitem--soon { border-left-color: #e0a33a; }
.ambitem--ok { border-left-color: var(--line-2); }
.ambitem__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ambitem__prazo { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.ambitem--late .ambitem__prazo { color: var(--late); }
.ambitem--soon .ambitem__prazo { color: var(--soon); }
.ambitem__titulo { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ambitem__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ambitem__foot { margin-top: 8px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dupla__col { border-left: 2px solid var(--line-2); padding-left: 14px; }
.dupla__col:first-child { border-left-color: var(--brand); }
.dupla__txt { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-top: 4px; }
.expl { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.expl-list { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; padding-left: 18px; margin: 6px 0 0; }
.expl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.expl-grid p { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
@media (max-width: 720px) { .dupla, .expl-grid { grid-template-columns: 1fr; } }

/* ---------------- comparação lado a lado ---------------- */
.cmp { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 0; align-items: start; }
.cmp__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-1); min-width: 0; }
.cmp__head { margin-bottom: 12px; }
.cmp__head h2 { font-size: 17px; margin-top: 2px; }
.cmp__sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.cmp__mid { display: flex; align-items: center; justify-content: center; padding-top: 90px; }
.cmp__mid span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 0; width: 32px; text-align: center; }
.mini__bar { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.mini__count { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.mini__fila { display: flex; flex-direction: column; gap: 6px; }
.mini__ghost { height: 30px; border: 1px dashed var(--line); border-radius: 8px; background: repeating-linear-gradient(135deg,#fafbf8,#fafbf8 6px,#f4f6f2 6px,#f4f6f2 12px); }
.mini__item { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.mini__item .item__title { font-size: 12.5px; }
.mini__item .item__side .btn { cursor: default; }
.mini__cap { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; border-top: 1px dashed var(--line); padding-top: 9px; }
.mini--vazio .state { padding: 26px 16px; text-align: left; }
.mini--vazio .state h3 { font-size: 13.5px; }
.mini--vazio .state p { margin: 6px 0 10px; text-align: left; max-width: none; }
.state--neutral { background: var(--surface-2); border: 1px dashed var(--line-2); }
.planta--mini { grid-auto-rows: 46px; gap: 5px; }
.planta--mini .zona { padding: 6px 7px; border-radius: 7px; }
.planta--mini .zona__nome { font-size: 10px; }
.planta--mini .zona__n { min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
.planta--mini .zona--salao { grid-column: span 6; }
.ambitem--foco { box-shadow: 0 0 0 2px var(--brand); background: #f7fbf8; }
.cmp__table td:first-child { width: 26%; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.cmp__table td:nth-child(2) { border-left: 2px solid var(--brand-soft); }
.cmp__table td:nth-child(3) { border-left: 2px solid var(--parc-bg); }
.cmp__notas { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.cmp__notas li { margin-bottom: 8px; }
.cmp__notas li::marker { color: var(--brand-2); font-weight: 700; }
@media (max-width: 1080px) {
  .cmp { grid-template-columns: 1fr; gap: 10px; }
  .cmp__mid { padding: 0; }
  .cmp__mid span { display: none; }
}
@media (max-width: 560px) { .planta--mini { grid-template-columns: repeat(3,1fr); } }

/* mini item em coluna: evita separadores órfãos */
.mini__item .item__meta { display: block; }
.mini__item .item__meta .sep { display: none; }
.mini__item .item__meta span:not(.sep)::after { content: " · "; color: var(--line-2); }
.mini__item .item__meta span:not(.sep):last-child::after { content: ""; }
.mini__item .item__side { flex-wrap: wrap; gap: 6px; }

.nav-item__hint { display: block; font-size: 10px; font-weight: 400; letter-spacing: .01em; color: #8fb3a1; margin-top: 1px; }
.nav-item.is-active .nav-item__hint { color: var(--brand-2); opacity: .8; }

/* ---------------- panorama (visão geral atual) ---------------- */
.painel-id { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.painel-id span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.painel-id strong { display: block; font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.aviso-leitura { border: 1px solid var(--line-2); border-left: 3px solid var(--brand-2); background: var(--surface); border-radius: 9px; padding: 11px 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.55; }
.aviso-leitura strong { color: var(--ink); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.area { display: flex; flex-direction: column; gap: 3px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; background: var(--surface); box-shadow: var(--shadow-1); transition: border-color .12s ease, transform .06s ease; }
.area:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.area__icon { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 4px; }
.area__nome { font-family: var(--display); font-size: 13.5px; letter-spacing: -.01em; }
.area__desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.area__det { font-size: 11px; color: var(--muted); line-height: 1.4; }
.area__go { margin-top: auto; padding-top: 8px; font-size: 11px; font-weight: 600; color: var(--brand-2); }
.mini-links { display: flex; flex-direction: column; }
.mini-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font-size: 12px; color: var(--ink-2); }
.mini-link:last-child { border-bottom: 0; }
.mini-link strong { font-size: 11.5px; color: var(--brand-2); white-space: nowrap; }
.mini-link:hover strong { text-decoration: underline; }
/* controle de posição no rodapé do menu */
.posicao { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; margin-bottom: 12px; }
.posicao__label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #86a595; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.posicao__badge { background: var(--accent); color: #24340c; border-radius: 4px; padding: 0 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0; }
.segmented--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); display: flex; width: 100%; }
.segmented--dark button { flex: 1; color: #cfe0d6; font-size: 10.5px; padding: 6px 6px; }
.segmented--dark button[aria-pressed="true"] { background: #fff; color: var(--brand); }
.posicao__why { margin-top: 7px; background: none; border: 0; padding: 0; color: #9fbcac; font-size: 10.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.posicao__why:hover { color: #fff; }
@media (max-width: 1120px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .painel-id { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }

/* ---------------- estado vazio da fila ---------------- */
.calma {
  background: linear-gradient(180deg, #fbfdf9, var(--surface));
  border: 1px solid #cfe2d5; border-radius: var(--r-lg);
  padding: 20px 20px 16px; margin-bottom: 14px; box-shadow: var(--shadow-1);
}
.calma__top { display: flex; align-items: flex-start; gap: 13px; }
.calma__check {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ok); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
  box-shadow: 0 0 0 5px rgba(44,107,69,.1);
}
.calma__top h3 { font-size: 19px; letter-spacing: -.015em; }
.calma__sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 3px; max-width: 70ch; }
.calma__top .chip { margin-left: auto; flex: none; }
.calma__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 16px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calma__stats > div { padding: 11px 14px 11px 0; }
.calma__stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.calma__stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.calma__stats strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; margin-top: 2px; }
.calma__stats small { display: block; font-size: 11px; color: var(--muted); }
.calma__h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 8px; }
.calma__lista { list-style: none; margin: 0; padding: 0; }
.calma__lista li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.calma__lista li:last-child { border-bottom: 0; }
.calma__lista time { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; width: 38px; }
.calma__li { flex: 1; min-width: 0; }
.calma__li strong { display: block; font-size: 12.5px; font-weight: 600; }
.calma__li span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.calma__por { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.iconbtn--xs { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; padding: 0; }
.calma__acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.calma__nota { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; border-top: 1px dashed var(--line); padding-top: 9px; }
@media (max-width: 620px) { .calma__stats { grid-template-columns: 1fr; } .calma__stats > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .calma__top .chip { display: none; } }

.calma__segue { font-size: 11.5px; color: var(--ink-2); margin: 0 0 10px 2px; }


/* =========================================================
   TEMA CLARO · opção B
   Mantém a identidade (verde + areia) e troca os blocos de
   verde profundo por superfícies claras com contorno fino.
   ========================================================= */
:root {
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --line: #e3e8f0;
  --line-2: #cfd8e6;
  --ink: #101a2e;
  --ink-2: #3a4658;
  --muted: #5f6b7d;
  --brand: #0C3FBE;
  --brand-2: #1560E0;
  --brand-soft: #E8F1FE;
  --accent: #BEECFE;
  --shadow-2: 0 18px 40px -26px rgba(12, 63, 190, .22), 0 2px 8px rgba(12, 63, 190, .05);
  --ok: #12735C;
  --ok-bg: #E6F3F0;
  --condo: #0C3FBE;
  --condo-bg: #E8F1FE;
  --ras: #6B5B3E;
  --ras-bg: #F6F0E3;
}

/* --- topo --- */
.topbar { background: rgba(247, 249, 252, .92); }

/* --- rail: de verde profundo para papel --- */
.rail {
  background: var(--surface);
  color: var(--ink-2);
  border-right: 1px solid var(--line);
}
.rail__brand strong { color: var(--ink); }
.rail__brand span { color: var(--muted); }
.rail__logo { background: #fff; border: 1px solid var(--line); }

.condoswitch {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.condoswitch:hover { background: #eef4fe; border-color: var(--line-2); }
.condoswitch__label { color: var(--muted); }
.condoswitch__meta { color: var(--muted); }
.condoswitch__caret { color: var(--muted); }

.nav-group__title { color: #71809a; }
.nav-item { color: var(--ink-2); }
.nav-item:hover { background: #eef4fd; }
.nav-item__icon { color: #7b93b5; }
.nav-item--soft { color: #566274; }
.nav-item__count { background: var(--accent); color: #0B2B57; }
.nav-item__count--quiet { background: #edf2f8; color: var(--ink-2); }
.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: inset 2px 0 0 var(--brand);
}
.nav-item.is-active .nav-item__icon { color: var(--brand); }
.nav-item.is-active .nav-item__count { background: var(--brand); color: #fff; }
.nav-item .nav-item__count--late,
.nav-item.is-active .nav-item__count--late { background: var(--late); color: #fff; }
.rail__foot, .posicao { border-top-color: var(--line); }
.rail__foot .whoami__name, .rail__foot strong { color: var(--ink); }
.rail__foot .whoami__role, .rail__foot span { color: var(--muted); }

/* --- faixa do turno: de bloco escuro para faixa clara --- */
.shiftbar {
  background: linear-gradient(180deg, #EFF5FE, #E6F0FD);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.shiftbar::after {
  background: radial-gradient(circle, rgba(12, 63, 190, .07), transparent 65%);
}
.shiftbar__title { color: var(--brand); }
.shiftbar__meta { color: var(--ink-2); }
.shiftbar__line { background: linear-gradient(90deg, rgba(12,63,190,.32), rgba(12,63,190,.10)); }
.shiftbar__hour { color: #67758a; }
.shiftbar .chip { background: #fff; }

/* --- botões primários: verde médio, ainda com peso --- */
.btn--primary { color: #fff; }

/* --- posicao / painel lateral --- */
.posicao__why:hover { color: var(--ink); }


/* =========================================================
   IDENTIDADE DO PRODUTO · tokens oficiais RAS ÍRIS
   Fonte: frontend/css/iris-visual-identity.css e iris-panel-base.css
   Paleta verbatim do website — #0A5CD8 · #062E8C · #18A8FF · #197952
   Tipografia oficial embutida em base64 (Space Grotesk + Inter variáveis).
   ========================================================= */
@font-face {
  font-family: "Space Grotesk";
  src: url(/assets/website-genspark/fonts/space-grotesk-variable-latin.woff2) format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/website-genspark/fonts/inter-variable-latin.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --iris-blue: #0a5cd8;
  --iris-deep: #062e8c;
  --iris-blue-soft: #e8f0fe;
  --iris-cyan: #18a8ff;
  --iris-cyan-ink: #076f9b;
  --iris-cyan-soft: #eaf7ff;
  --iris-green: #197952;
  --iris-green-soft: #e4f3ed;
  --iris-amber: #8a6414;
  --iris-amber-soft: #fdf4e3;
  --iris-red: #b14436;
  --iris-red-soft: #fcf0ed;
  --iris-ink: #0b1020;

  --paper: #f6f7f9;
  --surface-2: #fbfcfd;
  --line: #e4e7ec;
  --line-2: #d3d9e3;
  --ink: #0b1020;
  --ink-2: #4a5261;
  --muted: #657081;
  --brand: #0a5cd8;
  --brand-2: #062e8c;
  --brand-soft: #e8f0fe;
  --accent: #e8f0fe;
  --ok: #197952;
  --ok-bg: #e4f3ed;
  --soon: #8a6414;
  --soon-bg: #fdf4e3;
  --late: #b14436;
  --late-bg: #fcf0ed;
  --condo: #0a5cd8;
  --condo-bg: #e8f0fe;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .view__head h1, .panel__head h3, .pulse__label, .eyebrow {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -.025em;
}
.view__head h1 { font-weight: 500; }
.panel__head h3 { font-weight: 500; }
.rail__brand strong, .shiftbar__title { font-family: "Space Grotesk", system-ui, sans-serif; }

/* Números dos indicadores no padrão do painel oficial */
.pulse__value { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 400; letter-spacing: -.02em; }

/* Barra lateral: superfície branca, item ativo em azul suave */
.rail { background: var(--surface); border-right: 1px solid var(--line); color: var(--ink-2); }
.rail__brand strong { color: var(--ink); }
.rail__brand span { color: var(--muted); }
.rail__logo { background: #fff; border: 1px solid var(--line); }
.condoswitch { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.condoswitch:hover { background: var(--iris-blue-soft); border-color: var(--line-2); }
.condoswitch__label, .condoswitch__meta, .condoswitch__caret { color: var(--muted); }
.nav-group__title { color: #7c879b; font-family: "Space Grotesk", system-ui, sans-serif; }
.nav-item { color: var(--ink-2); }
.nav-item:hover { background: #f1f5fc; }
.nav-item__icon { color: #8aa0bf; }
.nav-item--soft { color: #5d6878; }
.nav-item__count { background: var(--iris-blue-soft); color: var(--iris-deep); }
.nav-item__count--quiet { background: var(--iris-sunk, #f1f3f6); color: var(--ink-2); }
.nav-item.is-active { background: var(--iris-blue-soft); color: var(--iris-blue); box-shadow: inset 2px 0 0 var(--iris-blue); }
.nav-item.is-active .nav-item__icon { color: var(--iris-blue); }
.nav-item.is-active .nav-item__count { background: var(--iris-blue); color: #fff; }
.nav-item .nav-item__count--late, .nav-item.is-active .nav-item__count--late { background: var(--iris-red); color: #fff; }
.rail__foot, .posicao { border-top-color: var(--line); }

/* Faixa do turno com o grafismo de grade do login oficial */
.shiftbar {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.shiftbar::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,92,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,92,216,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 90% at 100% 0%, #000, transparent 72%);
}
.shiftbar::after { background: radial-gradient(circle, rgba(24,168,255,.10), transparent 62%); }
.shiftbar__title { color: var(--iris-ink); font-weight: 500; }
.shiftbar__meta { color: var(--ink-2); }
.shiftbar__line { background: linear-gradient(90deg, rgba(10,92,216,.35), rgba(10,92,216,.10)); }
.shiftbar__hour { color: #6d7a8c; }

/* Botões */
.topbar { background: rgba(246, 247, 249, .94); border-bottom: 1px solid var(--line); }
.btn--primary { background: var(--iris-blue); border-color: var(--iris-blue); color: #fff; font-weight: 500; }
.btn--primary:hover { background: var(--iris-deep); border-color: var(--iris-deep); }
.btn--lime { background: var(--iris-cyan-soft); border-color: #b9e3f8; color: var(--iris-cyan-ink); }
.iconbtn:hover { border-color: var(--iris-blue); }


/* Integração operacional: a estrutura externa é única. */
html { color-scheme: light; }
html, body { min-width: 300px; }
.rail { height: 100dvh; max-height: 100dvh; overscroll-behavior: contain; scrollbar-gutter: stable; }
.rail__nav { flex: 1 0 auto; }
.rail__brand { min-height: 34px; }
.rail__close { display: none; }
.rail .nav-item__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.rail .nav-item__icon svg { width: 14px; height: 14px; }
.rail .nav-item__hint { display: block; font-size: 10.5px; font-weight: 400; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.rail .nav-item.is-active .nav-item__hint { color: #7186a8; }
.nav-item[aria-current="page"] { background: var(--iris-blue-soft); color: var(--iris-blue); box-shadow: inset 2px 0 0 var(--iris-blue); font-weight: 600; }
.nav-item[aria-current="page"] .nav-item__icon { color: var(--iris-blue); }
.nav-item[aria-current="page"] .nav-item__count { color: #fff; background: var(--iris-blue); }
.condoswitch { cursor: default; }
.condoswitch__name { overflow-wrap: anywhere; }
.topbar { min-height: 62px; }
.topbar__ctx { min-width: 0; }
.topbar__shift { overflow: hidden; text-overflow: ellipsis; }
.topbar__title { color: var(--ink-2); font-size: 12px; font-weight: 500; }
.topbar__status { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.topbar__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.searchbtn { flex: 0 1 320px; min-width: 0; }
.searchbtn span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__tools .iconbtn svg { width: 16px; height: 16px; }
.shell-guide-btn { font-size: 11px; padding: 7px 10px; font-weight: 500; }
.shell-guide-btn svg { width: 14px; height: 14px; color: var(--iris-blue); flex: none; }
.topbar [data-language-selector] { display: flex; align-items: center; }
.shell-loading { padding: 8px 0 22px; }
.shell-loading__header { height: 26px; width: min(430px, 75%); margin-bottom: 20px; }
.shell-loading__card { min-height: 112px; }
.shell-loading__rows { height: 180px; margin-top: 6px; }
.shell-loading .skeleton { border-radius: var(--r-md); background: linear-gradient(90deg,#e9edf3 25%,#f6f8fb 40%,#e9edf3 65%); background-size: 220% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.shell-loading__message { margin: 16px 0; color: var(--muted); font-size: 13px; }
.shell-loading__label { margin-bottom: 16px; }
.shell-frame-wrap { width: 100%; min-width: 0; }
.genspark-module-frame, .genspark-frame, [data-shell-module-frame] { display: block; width: 100%; border: 0; background: var(--paper); min-height: calc(100dvh - 104px); color-scheme: light; }
.view--module { padding: 0; max-width: none; }
#gensparkModuleStage { position: relative; }
#gensparkModuleStage > [data-shell-frame-status]:not(:empty) { position: absolute; top: 8px; left: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; }
.rail-backdrop { position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(11,16,32,.32); padding: 0; cursor: pointer; }
.shell-connection-slot:empty { display: none; }
.shell-connection-slot .nav-item { font-size: 12.5px; padding: 8px 10px; }
.shell-connection-slot .nav-item > svg { width: 15px; height: 15px; flex: none; color: #8aa0bf; }
[data-shell-user-name]:empty, [data-shell-user-role]:empty { display: none; }
.pulse__value, .item__valor, .num { font-variant-numeric: tabular-nums; }
button, a { -webkit-tap-highlight-color: transparent; }
.rail .nav-item { font-size: 13px; }
.rail .nav-item--soft { font-size: 12px; }
@media (max-width: 900px) {
  .rail { width: min(290px, calc(100vw - 34px)); }
  .app.is-menu-open .rail { transform: none; }
  .rail__close { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 10px; top: 14px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
  .rail__brand { padding-right: 26px; }
  .topbar { gap: 8px; }
  .topbar__ctx { flex: 1; }
  .topbar__status { font-size: 10px; }
  .searchbtn { margin-left: 0; flex: 0 0 auto; }
  .topbar__tools { gap: 5px; }
  .shell-guide-btn { padding: 8px; }
  .shell-guide-btn span { display: none; }
  .genspark-module-frame, .genspark-frame, [data-shell-module-frame] { min-height: calc(100dvh - 82px); }
}
@media (max-width: 420px) {
  .topbar { padding-inline: 10px; }
  .topbar__title { max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar__status { max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media print {
  .rail, .topbar, .skip, .rail-backdrop { display: none !important; }
  .app { display: block; }
  .view { padding: 0; max-width: none; }
}

/* Integração operacional: palco estável para preservar formulários e diálogos. */
#gensparkView[hidden],#gensparkModuleStage[hidden],.genspark-module-frame[hidden]{display:none!important}
.genspark-module-frame{border:0;width:100%;min-height:160px;background:var(--bg,#f6f7f9)}
.gsp-timeline{height:2px;background:#d5e4ff;position:relative;margin:26px 0 7px}.gsp-timeline>span{position:absolute;width:8px;height:16px;top:-7px;border-radius:5px;background:#0a5cd8;box-shadow:0 0 0 4px #e8f0fe}.gsp-ticks{display:flex;justify-content:space-between;color:var(--muted,#667085);font-size:10px}.shiftbar__head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.shiftbar__head>span{font-size:12px;color:var(--muted,#667085)}
.gsp-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0}.gsp-filters label{display:flex;gap:8px;align-items:center;font-size:12px}.gsp-filters select{font:inherit;border:1px solid var(--line,#dfe4ed);border-radius:8px;padding:8px 12px;background:#fff}.fila__item{display:flex;align-items:center;gap:14px;padding:17px 18px;background:#fff;border:1px solid var(--line,#dfe4ed);border-radius:12px;margin:9px 0}.fila__main{flex:1;min-width:0}.fila__main h3{font-size:14px;margin:0 0 6px}.fila__meta{font-size:12px;color:var(--muted,#667085);margin:0;line-height:1.6}.fila__item--urgent{border-left:3px solid #b14436}.fila__amount,.fila__due{font-size:12px;white-space:nowrap}.fila__due{color:var(--muted,#667085)}.fila__group-head{display:flex;gap:12px;align-items:center;margin:22px 0 10px}.fila__group-head h3{margin:0;font-size:14px}.fila__group-head>span{font-size:11px;color:var(--muted,#667085)}.pulse>a{text-decoration:none;color:inherit}.pulse>a:hover{border-color:#0a5cd8}.areas .area{padding:20px;display:flex;flex-direction:column;gap:10px}.gsp-sol{position:fixed;bottom:18px;right:18px;border:0;background:#0a5cd8;color:white;padding:14px 18px;border-radius:13px;z-index:40;box-shadow:0 5px 18px #062e8c24;font:600 13px Inter,sans-serif;cursor:pointer}.gsp-search-dialog{border:1px solid var(--line,#dfe4ed);border-radius:16px;max-width:640px;width:calc(100% - 32px);padding:26px;background:#fff;color:#0b1020}.gsp-search-dialog::backdrop{background:#0b102055}.gsp-search-dialog input{display:block;width:100%;box-sizing:border-box;margin:10px 0 18px;border:1px solid #dfe4ed;border-radius:9px;padding:12px;font:inherit}.gsp-search-dialog [data-search-results]{display:grid;gap:12px;margin-bottom:20px}.gsp-search-dialog label{font-size:13px}.gsp-search-dialog h2{margin-top:0}
@media(max-width:760px){.fila__item{align-items:flex-start;flex-wrap:wrap}.fila__main{flex-basis:100%}.fila__due{white-space:normal}.fila__item .btn{margin-left:auto}.gsp-sol{bottom:12px;right:12px;padding:11px 14px}}
.gsp-filters .seg{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dfe4ed;border-radius:999px;background:#fff;max-width:100%;flex-wrap:wrap}.gsp-filters .seg__btn{appearance:none;border:0;border-radius:999px;background:transparent;color:#26354b;padding:8px 13px;font:500 12px Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}.gsp-filters .seg__btn[aria-pressed=true]{background:#0a5cd8;color:#fff}.gsp-filters .seg__btn:hover:not([aria-pressed=true]){background:#e8f0fe;color:#0a5cd8}.gsp-filters .seg__btn:focus-visible{outline:2px solid #18a8ff;outline-offset:2px}.gsp-qa-banner{margin:0;padding:8px 24px;background:#e8f0fe;color:#062e8c;font:12px Inter,system-ui,sans-serif;text-align:right}
/* A IA e o plano mantêm os controladores existentes com uma única entrada. */
html[data-condominio-genspark-shell] #ras-sol-ia-root .ras-sol-ia__launcher{display:none!important}
html[data-condominio-genspark-shell] .topbar__tools>.ras-my-plan-button{position:static!important;inset:auto!important;transform:none!important;z-index:auto!important;margin:0!important;display:inline-flex!important;align-items:center;gap:5px;background:#fff!important;color:#26354b!important;border:1px solid #dfe4ed!important;border-radius:8px!important;box-shadow:none!important;padding:8px 10px!important;font:500 12px Inter,system-ui,sans-serif!important;white-space:nowrap}
html[data-condominio-genspark-shell] .topbar__tools>.ras-my-plan-button>span{font-size:10px}
@media(max-width:600px){html[data-condominio-genspark-shell] .topbar__tools>.ras-my-plan-button{padding:7px!important;font-size:11px!important}.topbar__tools{gap:5px}}

/* Ações operacionais de Moradores, compartilhadas com a prévia de teste. */
[data-condominio-genspark-shell] [data-shell-resident-actions]{display:flex;flex-wrap:wrap;gap:8px;padding:16px 20px 12px}
[data-condominio-genspark-shell] [data-shell-resident-actions] .btn{background:#fff;color:#075cca;border:1px solid #dbe4f0}
[data-condominio-genspark-shell] [data-shell-resident-actions] [aria-current="page"]{background:#e8f0ff;border-color:#8ab5f4}
@media(max-width:640px){[data-condominio-genspark-shell] [data-shell-resident-actions]{padding:12px;gap:6px}[data-condominio-genspark-shell] [data-shell-resident-actions] .btn{font-size:12px;flex:1 1 calc(50% - 6px)}}

/* Um único cabeçalho: contexto, título, subtítulo e ações, nessa ordem. */
[data-condominio-genspark-shell] [data-shell-resident-layout]{padding:20px!important}
[data-condominio-genspark-shell] [data-shell-resident-heading]{margin:0 0 20px;padding:0;background:transparent;border:0}
[data-condominio-genspark-shell] [data-shell-resident-heading] .eyebrow{margin:0 0 8px;color:#0a5cd8;font-size:12px;font-weight:400;letter-spacing:.1em;text-transform:uppercase}
[data-condominio-genspark-shell] [data-shell-resident-heading] h1{margin:0 0 8px;color:#062e8c;font-size:30px;font-weight:500;line-height:1.2}
[data-condominio-genspark-shell] [data-shell-resident-heading] .view__sub{margin:0;color:#657081}
[data-condominio-genspark-shell] [data-shell-resident-layout] [data-shell-resident-actions]{padding:0;margin:0 0 20px}
@media(max-width:640px){[data-condominio-genspark-shell] [data-shell-resident-layout]{padding:14px!important}[data-condominio-genspark-shell] [data-shell-resident-heading] h1{font-size:26px}}

.gsp-sol{display:inline-flex;align-items:center;gap:8px}.gsp-sol>svg{width:25px;height:25px;flex:none}.shell-guide-btn{border-color:#b8cde7;color:#1f477d;animation:iris-guide-attention 2s ease-in-out infinite}.shell-guide-btn:hover{border-color:#2368bd;background:#edf4ff}@keyframes iris-guide-attention{0%,100%{background:#fff;box-shadow:0 0 0 0 rgba(35,104,189,.32)}50%{background:#edf4ff;box-shadow:0 0 0 5px rgba(35,104,189,.12)}}@media(prefers-reduced-motion:reduce){.shell-guide-btn{animation:none;background:#edf4ff;box-shadow:0 0 0 2px rgba(35,104,189,.2)}}

/* Alerta mensal apenas no menu operacional; as cópias do guia são estáticas. */
html[data-condominio-genspark-shell] #condominioApp .rail .gsp-monthly-due {
  animation: gsp-monthly-payment 1.8s ease-in-out infinite;
  border-inline-start: 3px solid #0a5cd8;
}
@keyframes gsp-monthly-payment {
  0%, 100% { background-color: #edf4ff; color: #0648ad; box-shadow: inset 0 0 0 1px #a8c7fa; }
  50% { background-color: #0a5cd8; color: #fff; box-shadow: inset 0 0 0 2px #0648ad; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-condominio-genspark-shell] #condominioApp .rail .gsp-monthly-due { animation: none; background-color: #d5e5ff; box-shadow: inset 0 0 0 2px #0a5cd8; }
}
