:root {
  --ink: #17181d;
  --muted: #6c6c76;
  --line: #e7e7ec;
  --bg: #f6f6f8;
  --accent: #ff6a00;
  --accent-text: #b84a00;
  --accent-light: #fff1e6;
  --sidebar: #0c0c0e;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e85d00;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

.app-shell {
  margin-left: 242px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
}
.slash {
  margin: 0 17px;
  color: #b7b7c1;
}
.topbar strong {
  font-weight: 550;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.local-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #646471;
  font-size: 10px;
}
.local-status > span {
  height: 6px;
  width: 6px;
  background: #60a78a;
  border-radius: 50%;
}
.avatar-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  font-size: 11px;
  color: #646471;
}
.avatar {
  border-radius: 50%;
  background: #f1f1f5;
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  color: #5d5d6e;
  font-size: 15px;
}
main {
  max-width: 1500px;
  padding: 43px 44px 25px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 31px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  text-decoration: none;
}
.account-kind {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #646471;
}
h1 {
  font-size: 37px;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin: 10px 0;
}
h1 > span {
  color: var(--accent);
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  min-height: 42px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s;
}
.button.primary {
  background: var(--accent);
  color: #17181d;
  box-shadow: 0 2px 2px #ff6a0033;
}
.button.primary:hover {
  background: #e85d00;
}
.button.secondary {
  border-color: #dedee6;
  background: white;
  color: #3d3d4b;
}
.button.secondary:hover {
  background: #f5f5f8;
}
.button.light {
  background: #fff;
  border-color: #ffd9bd;
  color: #8a3a00;
}
.button.ghost {
  color: #666674;
  background: transparent;
  padding: 6px;
}
.button.danger {
  background: #ad3c3c;
  color: white;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 23px;
  box-shadow: 0 3px 6px #27312202;
}
.stat {
  padding: 22px 25px;
  position: relative;
}
.stat + .stat:before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  bottom: 23px;
  width: 1px;
  background: var(--line);
}
.stat-label {
  display: flex;
  justify-content: space-between;
  color: #646471;
  font-size: 11px;
}
.stat-label > span {
  font-size: 16px;
  color: #686875;
}
.stat-label .green-icon {
  color: var(--accent-text);
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1.3px;
  font-weight: 550;
  margin-top: 17px;
  line-height: 1;
}
.stat small {
  display: block;
  font-size: 10px;
  color: #686875;
  margin-top: 11px;
}

.contacts-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 25px 20px;
}
.list-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
}
.list-heading > div > span {
  color: #686875;
  font-size: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 25px 21px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e1e8;
  padding: 0 13px;
  background: #fdfdfe;
  border-radius: 6px;
  margin: 0;
}
.search > span {
  font-size: 23px;
  color: #686875;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  padding: 11px 0;
  font-size: 11px;
  outline-offset: 0;
}
.search input:focus-visible {
  outline: 0;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filters {
  display: flex;
  gap: 9px;
}
.filters select {
  font-size: 10px;
  padding: 11px 27px 11px 10px;
  background-color: white;
  border-color: #e1e1e8;
  max-width: 190px;
  min-height: 39px;
}
.table-wrap {
  overflow: auto;
  position: relative;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 680px;
}
thead {
  background: #fafafb;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  color: #686875;
  font-weight: 600;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 24px;
  font-size: 12px;
  border-bottom: 1px solid #ededf1;
  color: #60606e;
}
td:first-child {
  color: var(--ink);
  font-weight: 550;
  min-width: 180px;
}
.contact-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f1f6;
  color: #666675;
  font-size: 10px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
}
.name-text {
  overflow-wrap: anywhere;
  max-width: 230px;
}
.phone {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  white-space: nowrap;
}
.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 200px;
}
.chip {
  background: #f1f1f6;
  color: #626273;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.consent {
  font-size: 10px;
  white-space: nowrap;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.consent:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4aaa0;
}
.consent.opted_in {
  color: #0b7250;
}
.consent.opted_in:before {
  background: #38a377;
}
.consent.opted_out {
  color: #ad5454;
}
.consent.opted_out:before {
  background: #b96e6e;
}
.row-actions {
  display: flex;
  gap: 3px;
}
.icon-button {
  border: 0;
  background: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-grid;
  place-content: center;
  color: #6d6d7c;
  font-size: 23px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #f1f1f6;
}
.edit-button {
  font-size: 16px;
}
.delete-button {
  font-size: 18px;
}
.empty-state {
  text-align: center;
  padding: 34px 20px 39px;
}
.empty-art {
  width: 78px;
  height: 70px;
  position: relative;
  margin: auto auto 17px;
  border: 1px solid #e7e7ee;
  border-radius: 10px;
  background: linear-gradient(145deg, #fdfdfe, #f3f3f7);
  transform: rotate(-5deg);
}
.empty-art > span {
  position: absolute;
  right: -12px;
  top: 1px;
  background: #ff6a00;
  color: #17181d;
  width: 27px;
  height: 27px;
  border: 4px solid white;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-content: center;
}
.empty-art > i {
  display: block;
  background: #dddde6;
  height: 4px;
  width: 39px;
  border-radius: 5px;
  margin: 13px 15px 0;
}
.empty-art > i:nth-of-type(2) {
  width: 30px;
  margin-top: 9px;
}
.empty-art > i:nth-of-type(3) {
  width: 20px;
  margin-top: 9px;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 9px;
  letter-spacing: -0.2px;
}
.empty-state p {
  font-size: 11px;
  color: #686875;
  line-height: 1.8;
  margin: 0 0 18px;
}
.empty-state .button {
  font-size: 11px;
  padding: 9px 14px;
  min-height: 37px;
}
.table-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 10px;
  color: #686875;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-button {
  height: 32px;
  width: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #60606f;
  background: white;
}
.footer-note {
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #686875;
  margin: 25px 0;
}
.footer-note > span {
  color: #777787;
}
dialog {
  color: var(--ink);
  background: #fff;
  border: 0;
  box-shadow: 0 25px 100px #10261f30;
  padding: 30px;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #17181d5c;
  backdrop-filter: blur(3px);
}
.modal {
  border-radius: 16px;
  width: 450px;
  max-width: calc(100vw - 30px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-heading h2 {
  font-size: 23px;
  margin-top: 8px;
  line-height: 1.3;
}
.dialog-heading .icon-button {
  align-self: flex-start;
  margin-top: -5px;
}
.dialog-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 14px 0 25px;
}
.segmented {
  display: flex;
  background: #f3f3f7;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 25px;
  gap: 3px;
}
.segmented button {
  border: 0;
  color: #646475;
  background: none;
  flex: 1;
  min-height: 39px;
  border-radius: 5px;
  font-size: 12px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 5px #14291b12;
  color: #8a3a00;
  font-weight: 600;
}
form > label,
dialog > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #5b5b6d;
  margin: 18px 0;
}
input,
select {
  border: 1px solid #dedee6;
  border-radius: 6px;
  padding: 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
input::placeholder {
  color: #686875;
}
label small,
fieldset small {
  font-size: 10px;
  color: #686875;
  line-height: 1.7;
}
select {
  width: auto;
}
form > label > select {
  width: 100%;
}
.full {
  width: 100%;
  margin-top: 12px;
}
.form-note {
  font-size: 10px;
  color: #686875;
  line-height: 1.8;
  margin-top: 17px;
  text-align: center;
}
.import-modal {
  width: 560px;
}
.import-mapping {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.import-mapping label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #5b5b6d;
}
.import-progress {
  border-radius: 8px;
  background: #f7f5f5;
  padding: 13px 15px;
  color: #44434c;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 17px;
}
.import-errors {
  max-height: 220px;
  overflow: auto;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid #eee0e0;
  border-radius: 8px;
  color: #6b4a35;
  font-size: 11px;
}
.import-errors ul {
  padding-left: 20px;
  line-height: 1.7;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 440px;
  max-width: 100vw;
  border-radius: 16px 0 0 16px;
  padding: 34px;
}
.drawer form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.drawer .dialog-actions {
  margin-top: auto;
  padding-top: 30px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.tag-fieldset {
  border: 0;
  padding: 0;
  margin: 13px 0 5px;
}
.tag-fieldset legend {
  font-size: 12px;
  color: #5b5b6d;
  margin-bottom: 10px;
}
.tag-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tag-options > label {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.tag-options input {
  accent-color: var(--accent);
  margin: 0;
}
.tag-create {
  display: flex;
  gap: 8px;
}
.tag-create input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.tag-list {
  margin-top: 20px;
}
.tag-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.tag-list .chip {
  font-size: 12px;
}
.form-error,
.inline-error {
  font-size: 12px;
  color: #9f3f3f;
  background: #fff1f0;
  border: 1px solid #f1d3ce;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.7;
}
.inline-error {
  margin: 0 24px 16px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #24242e;
  color: #fff;
  border: 1px solid #494957;
  border-radius: 9px;
  padding: 14px 22px;
  box-shadow: 0 10px 30px #17181d26;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.loading-row td {
  height: 110px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  main {
    padding-top: 55px;
  }
  .stats {
    margin-bottom: 30px;
  }
  .page-heading {
    margin-bottom: 37px;
  }
  .empty-state {
    padding: 60px 20px;
  }
}
@media (max-width: 1150px) {
  
  .app-shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 34px 26px;
  }
  .list-heading > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .stat {
    padding: 21px 20px;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    min-width: 100%;
  }
  .filters {
    width: 100%;
  }
  .filters select {
    flex: 1;
    max-width: 100%;
  }
  
  
  
  .toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 720px) {
  
  
  
  
  
  
  
  
  
  .app-shell {
    margin: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .topbar-right {
    gap: 9px;
  }
  .local-status {
    font-size: 9px;
  }
  .avatar-button {
    font-size: 10px;
    gap: 5px;
  }
  .avatar {
    width: 27px;
    height: 27px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .slash {
    margin: 0 10px;
  }
  .topbar strong {
    font-size: 10px;
  }
  main {
    padding: 29px 18px;
  }
  .page-heading {
    gap: 10px;
    align-items: center;
    margin-bottom: 23px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  h1 {
    font-size: 31px;
    margin: 8px 0;
  }
  .page-heading p {
    font-size: 10px;
    line-height: 1.6;
    max-width: 170px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 10px;
    gap: 4px;
    min-height: 40px;
  }
  .heading-actions {
    gap: 5px;
  }
  
  
  .heading-actions .button {
    font-size: 10px;
    padding: 9px 8px;
    gap: 4px;
  }
  .import-mapping {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats {
    margin-bottom: 18px;
  }
  .stat {
    padding: 17px 11px;
  }
  .stat-label {
    font-size: 9px;
    line-height: 1.5;
    min-height: 27px;
    gap: 4px;
  }
  .stat-label > span {
    display: none;
  }
  .stat strong {
    font-size: 27px;
    margin-top: 9px;
  }
  .stat small {
    font-size: 8px;
    line-height: 1.5;
    min-height: 24px;
    margin-top: 8px;
  }
  
  
  
  
  
  
  .list-heading {
    padding: 19px 16px 16px;
  }
  .list-heading h2 {
    font-size: 13px;
  }
  .list-heading .button {
    font-size: 11px;
    min-height: 40px;
  }
  .toolbar {
    padding: 0 16px 17px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    font-size: 10px;
    min-width: 120px;
    padding: 11px 7px;
  }
  .search input {
    font-size: 11px;
  }
  .empty-state {
    padding: 35px 15px;
  }
  .empty-state h3 {
    font-size: 13px;
  }
  .table-footer {
    padding: 13px 16px;
    font-size: 9px;
  }
  .footer-note {
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
    align-items: flex-start;
  }
  .toast {
    left: 50%;
    bottom: 18px;
    width: max-content;
    max-width: 90vw;
    font-size: 11px;
  }
  .drawer {
    padding: 26px;
    max-width: 100vw;
  }
  .modal {
    padding: 25px;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
  .list-heading > div > span {
    font-size: 9px;
  }
  .icon-button {
    width: 42px;
    height: 42px;
  }
  .page-button {
    width: 38px;
    height: 38px;
  }
  .tag-options > label {
    min-height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.help-link {
  display: block;
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: 12px;
  text-decoration: underline;
  padding: 12px 5px;
  margin: 8px auto 0;
  min-height: 42px;
}
.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.company-name {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
  max-width: 220px;
}
.company-code {
  display: block;
  color: #686875;
  font-size: 10px;
  margin-top: 6px;
  font-weight: 400;
  overflow-wrap: anywhere;
  max-width: 220px;
}
.company-table {
  min-width: 820px;
}
.company-table td {
  font-size: 11px;
  overflow-wrap: anywhere;
  max-width: 250px;
}
.company-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.company-actions .button {
  font-size: 10px;
  padding: 8px 10px;
  min-height: 36px;
}
.access-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  background: #edf3e9;
  color: #466840;
}
.access-badge.pending {
  background: #fbf0da;
  color: #7d5d16;
}
.access-badge.suspended {
  background: #faeae7;
  color: #9d4337;
}
.audit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.audit-item strong {
  font-size: 12px;
  font-weight: 500;
}
.audit-item small {
  font-size: 10px;
  color: #686875;
}
@media (max-width: 720px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-stats .stat:nth-child(3):before {
    display: none;
  }
  .admin-stats .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .company-actions .button {
    min-height: 42px;
  }
}

/* Identidade LLP: fonte declarada pelo site, logo oficial e contraste operacional. */

h1 {
  font-weight: 800;
  letter-spacing: -1.4px;
}
.eyebrow {
  font-weight: 700;
}
.button.primary {
  font-weight: 650;
  box-shadow: 0 3px 8px #ff6a0033;
}
.local-status > span {
  background: #188352;
}
.stat-label .green-icon {
  color: #18794e;
}
.team-table {
  min-width: 820px;
}
.team-name {
  display: block;
  font-weight: 550;
  max-width: 210px;
  overflow-wrap: anywhere;
}
.member-badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f0f0f5;
  color: #57576c;
  white-space: nowrap;
}
.member-badge.owner {
  background: #fff1e6;
  color: #8a3a00;
}
.access-badge.blocked {
  background: #faeae7;
  color: #9d4337;
}
.team-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 720px) {
  
  
  
  
  
  
  .team-table {
    min-width: 820px;
  }
}

/* Tema laranja e preto: botão secundário, tela de escolha e login */

/* Tela de acesso: login e criação de senha pelo link */
.access-card {
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #ff6a0055;
  border-radius: 18px;
  background: #17181d;
  color: #f4f4f6;
  box-shadow: 0 30px 90px #000000aa, 0 0 0 1px #00000040;
  overflow: auto;
}
.access-card::backdrop {
  background: radial-gradient(circle at 50% 30%, #2a2018, #141416 70%);
}
.access-card[open] {
  animation: access-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes access-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  .access-card[open] {
    animation: none;
  }
}
.access-card form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px 28px 24px;
}
.access-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b9b9c4;
  font-size: 22px;
  cursor: pointer;
}
.access-logo {
  width: 168px;
  height: auto;
  justify-self: center;
}
.access-card h2 {
  margin: 0;
  text-align: center;
  font-size: 19px;
  color: #fff;
}
.access-lead,
.access-note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #b9b9c4;
}
.access-note a,
.access-link u {
  color: #ff9a4d;
}
.access-company {
  justify-self: center;
  margin: 0;
  padding: 5px 12px;
  border-radius: 99px;
  background: #ff6a0022;
  color: #ffb27a;
  font-size: 13px;
  font-weight: 600;
}
.access-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #d9d9e0;
}
.access-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid #ff6a0099;
  border-radius: 14px;
  background: #34353b;
  color: #fff;
  font: inherit;
}
.access-card input::placeholder {
  color: #b4b4bf;
}
.access-card input:focus-visible,
.access-submit:focus-visible,
.access-link:focus-visible,
.reveal:focus-visible {
  outline: 2px solid #ff6a00;
  outline-offset: 2px;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 84px;
}
.reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ff9a4d;
  font-size: 12px;
  cursor: pointer;
}
.access-submit {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #ff6a00;
  color: #17181d;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.access-submit:hover:not(:disabled) {
  background: #ff8a2b;
}
.access-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.access-link {
  border: 0;
  background: transparent;
  color: #d9d9e0;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.access-card .form-error {
  margin: 0;
  color: #ff8d8d;
  font-size: 13px;
}
.access-made {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ffffff14;
  font-size: 12px;
  color: #8b8b97;
}
.access-made img {
  border-radius: 4px;
}
.access-card form > label {
  margin: 0;
  gap: 6px;
  font-size: 13px;
  color: #d9d9e0;
}
.access-card .form-error {
  padding: 10px 12px;
  border: 1px solid #ff8d8d66;
  border-radius: 10px;
  background: #3a1d1d;
}
.access-card [hidden] {
  display: none !important;
}

/* ===== Estrutura nova: barra lateral recolhível, Dashboard e telas "em breve" ===== */
:root {
  --rail-closed: 72px;
  --rail-open: 248px;
  --rail-bg: #17181d;
  --rail-hover: #26272e;
  --rail-line: #2e2f36;
  --rail-text: #c9cad1;
  --ease-rail: cubic-bezier(0.2, 0, 0, 1);
}
.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--rail-closed);
  display: flex;
  flex-direction: column;
  background: var(--rail-bg);
  color: var(--rail-text);
  border-right: 1px solid var(--rail-line);
  transition: width 0.2s var(--ease-rail);
}
body[data-rail="open"] .rail {
  width: var(--rail-open);
}
.app-shell {
  margin-left: var(--rail-closed);
  transition: margin-left 0.2s var(--ease-rail);
}
body[data-rail="open"] .app-shell {
  margin-left: var(--rail-open);
}
.rail-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--rail-line);
}
body[data-rail="open"] .rail-head {
  flex-direction: row;
  justify-content: space-between;
  padding: 14px 12px 12px 18px;
}
.rail-brand {
  display: block;
  border-radius: 8px;
}
.rail-mark {
  display: block;
  width: 34px;
  height: 44px;
  object-fit: cover;
  object-position: 0 50%;
}
.rail-full {
  display: none;
  width: 132px;
  height: auto;
}
body[data-rail="open"] .rail-mark {
  display: none;
}
body[data-rail="open"] .rail-full {
  display: block;
}
.rail-toggle,
.menu-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rail-text);
  cursor: pointer;
}
.rail-toggle:hover {
  background: var(--rail-hover);
  color: #fff;
}
.rail-toggle .chevron {
  transition: transform 0.2s var(--ease-rail);
}
body[data-rail="open"] .rail-toggle .chevron {
  transform: scaleX(-1);
}
.rail-nav {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
}
.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rail-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.rail-item:hover {
  background: var(--rail-hover);
  color: #fff;
}
.rail-item[aria-current="page"] {
  background: #ff6a00;
  color: #17181d;
  font-weight: 650;
}
/* Marca da logo: três listras inclinadas coladas à borda do item ativo. */
.rail-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  border-radius: 8px 0 0 8px;
  background: repeating-linear-gradient(-55deg, #17181d 0 2px, transparent 2px 5px);
}
.rail-item[aria-current="page"] .ico {
  margin-left: 4px;
}
.rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
body[data-rail="open"] .rail-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  flex: 1;
  animation: rail-label-in 0.18s ease 0.06s both;
}
@keyframes rail-label-in {
  from {
    opacity: 0;
  }
}
.rail-count {
  display: none;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #ffffff1a;
  color: inherit;
  font-size: 12px;
  text-align: center;
}
body[data-rail="open"] .rail-count {
  display: inline-block;
}
/* Dica do ícone enquanto a barra está recolhida. */
body:not([data-rail="open"]) [data-tip]:hover::after,
body:not([data-rail="open"]) [data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--rail-hover);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 40;
  animation: rail-label-in 0.12s ease 0.3s both;
}
.rail-toggle {
  position: relative;
}
.rail-foot {
  position: relative;
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--rail-line);
}
.rail-made {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 11px;
  color: #8b8d98;
  font-size: 12px;
}
.rail-made img {
  border-radius: 4px;
}
body[data-rail="open"] .rail-made {
  display: flex;
}
.settings-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% - 4px);
  width: 224px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--rail-line);
  border-radius: 12px;
  background: #1f2027;
  box-shadow: 0 8px 24px #17181d2e;
}
.settings-who {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--rail-line);
  margin-bottom: 4px;
}
.settings-who strong {
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.settings-who small {
  color: #9a9ba6;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.settings-action {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rail-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.settings-action:hover {
  background: var(--rail-hover);
  color: #fff;
}
.rail a:focus-visible,
.rail button:focus-visible {
  outline: 2px solid #ff9a4d;
  outline-offset: 2px;
}
.menu-button {
  display: none;
  color: var(--ink);
}
.topbar {
  height: 64px;
  padding: 0 32px;
  font-size: 13px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar strong {
  font-size: 15px;
  font-weight: 650;
}
.avatar-button {
  font-size: 13px;
  cursor: pointer;
}
.avatar {
  width: 34px;
  height: 34px;
}
.avatar .ico {
  width: 18px;
  height: 18px;
}
.local-status {
  font-size: 12px;
}
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #17181d80;
}

/* Títulos: sem rótulo em caixa alta, sem ponto de destaque */
.page-heading h1,
.soon h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-heading p {
  color: #5b5d68;
}
main {
  padding: 32px;
}
.link-button {
  min-height: 28px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Dashboard */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.kpi {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
}
.kpi + .kpi {
  border-left: 1px solid var(--line);
}
.kpi-label {
  color: #5b5d68;
  font-size: 13px;
  font-weight: 500;
}
.kpi strong {
  font-size: 32px;
  line-height: 36px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.kpi small {
  color: #5b5d68;
  font-size: 12px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.dash-panel {
  padding: 0;
  overflow: hidden;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.dash-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.dash-table th {
  padding: 10px 24px;
  color: #5b5d68;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
.dash-table td {
  padding: 12px 24px;
}
.dash-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 32px 24px;
}
.dash-empty h3 {
  margin: 0;
  font-size: 18px;
}
.dash-empty p {
  margin: 0;
  max-width: 46ch;
  color: #5b5d68;
  line-height: 1.5;
}
.dash-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step button {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.step button:hover {
  background: #f1f1f5;
}
.step.done button {
  color: #5b5d68;
  text-decoration: line-through;
}
.step-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: 10px;
  border: 1.5px solid #8a8c98;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.step.done .step-mark {
  border-color: #1a7f4b;
  background: #1a7f4b;
  color: #fff;
}

/* Conversas e Campanhas: telas "em breve" */
.soon {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 560px;
  margin: 8vh auto 0;
}
.soon p {
  margin: 0;
  color: #5b5d68;
  line-height: 1.6;
}
.soon-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: repeating-linear-gradient(-55deg, #ff6a00 0 6px, transparent 6px 14px);
  -webkit-mask: radial-gradient(circle, #000 0 98%, transparent 100%);
  opacity: 0.9;
}

@media (max-width: 1150px) {
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 28px 24px;
  }
}
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .rail {
    width: var(--rail-open);
    transform: translateX(-100%);
    transition: transform 0.2s var(--ease-rail);
  }
  body[data-rail="open"] .rail {
    transform: none;
    box-shadow: 0 8px 24px #17181d4d;
  }
  .app-shell,
body[data-rail="open"] .app-shell {
    margin-left: 0;
  }
  .rail-head {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 12px 12px 18px;
  }
  .rail-mark {
    display: none;
  }
  .rail-full {
    display: block;
  }
  .rail-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    flex: 1;
  }
  .rail-made {
    display: flex;
  }
  .rail-count {
    display: inline-block;
  }
  .menu-button {
    display: grid;
  }
  .topbar {
    height: 56px;
    padding: 0 12px;
  }
  .local-status {
    display: none;
  }
  main {
    padding: 20px 16px 28px;
  }
  .kpis {
    grid-template-columns: repeat(3, 1fr);
    margin: 16px 0;
  }
  .kpi {
    padding: 14px 12px;
  }
  .kpi strong {
    font-size: 24px;
    line-height: 28px;
  }
  .kpi small {
    display: none;
  }
  .dash-table,
  .dash-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .dash-table thead {
    display: none;
  }
  .dash-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
  }
  .dash-table td {
    padding: 0;
  }
  .dash-table td:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
    color: #5b5d68;
    font-size: 13px;
  }
  .dash-table td:nth-child(3) {
    grid-row: 1;
    grid-column: 2;
    color: #5b5d68;
    font-size: 13px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail,
.app-shell,
.rail-toggle .chevron,
body[data-rail="open"] .rail-label,
[data-tip]::after {
    transition: none !important;
    animation: none !important;
  }
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 8px;
  background: #17181d;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.settings-action[aria-current="page"] {
  background: #ff6a00;
  color: #17181d;
  font-weight: 650;
}
@media (max-width: 720px) {
  .rail-toggle,
.menu-button,
.settings-action,
.link-button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== Acabamento: um só jeito de fazer números, tabelas, etiquetas e controles ===== */
:root {
  --text-soft: #5b5d68;
  --line-soft: #ececf0;
  --pill-ok-bg: #e6f4ec;
  --pill-ok-fg: #146c3e;
  --pill-warn-bg: #f0f0f3;
  --pill-warn-fg: #4d505b;
  --pill-bad-bg: #fdecea;
  --pill-bad-fg: #a3261b;
}
/* Barra: bloco laranja liso, como no esboço (sem hachura) */
.rail-item[aria-current="page"]::before {
  content: none;
}
.rail-item[aria-current="page"] .ico {
  margin-left: 0;
}
.settings-action.danger {
  color: #ff9b91;
}
.settings-action.danger:hover {
  background: #3a2326;
  color: #ffb4ac;
}

/* Topbar */
.topbar-company {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.avatar-button {
  padding: 0;
  border-radius: 50%;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #17181d;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* Controles: altura 40, texto 14 */
.button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.search input,
.filters select,
select {
  font-size: 14px;
}
.search {
  min-height: 40px;
}
.search input {
  min-height: 38px;
}
.search > span,
.search .ico {
  color: var(--text-soft);
}
.filters select {
  min-height: 40px;
  max-width: 220px;
  padding: 0 34px 0 12px;
  border-radius: 8px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5d68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.ico.sm {
  width: 18px;
  height: 18px;
}
.list-heading > div > span {
  font-size: 13px;
  color: var(--text-soft);
}
.page-heading p {
  font-size: 14px;
}

/* Números: o mesmo componente no Dashboard, na Equipe e onde mais aparecer */
.stats,
.kpis {
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: none;
}
.stat {
  padding: 20px 24px;
}
.stat-label,
.kpi-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}
.stat strong {
  margin-top: 6px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.stat small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}
.kpi {
  padding: 20px 24px;
}

/* Tabelas: cabeçalho 12/500 em caixa normal, células 14, linhas de 56 */
th {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}
td {
  padding: 12px 24px;
  font-size: 14px;
  color: #3d3f49;
  border-bottom-color: var(--line-soft);
}
tbody tr:hover {
  background: #fafafb;
}
.name-text {
  font-size: 14px;
  font-weight: 600;
}
.phone {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: #3d3f49;
}
.initial {
  background: #ececf0;
  color: #3d3f49;
  font-weight: 600;
}
.chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0f0f3;
  color: #3d3f49;
  font-size: 12px;
  font-weight: 500;
}
.chip.more {
  background: transparent;
  border: 1px solid #dcdce2;
  color: var(--text-soft);
}
.consent {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pill-warn-bg);
  color: var(--pill-warn-fg);
  font-size: 12px;
  font-weight: 500;
}
.consent:before {
  background: #8a8c98;
}
.consent.opted_in {
  background: var(--pill-ok-bg);
  color: var(--pill-ok-fg);
}
.consent.opted_in:before {
  background: #1a7f4b;
}
.consent.opted_out {
  background: var(--pill-bad-bg);
  color: var(--pill-bad-fg);
}
.consent.opted_out:before {
  background: #c0362c;
}
.icon-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  color: var(--text-soft);
  border-radius: 8px;
}
.icon-button:hover {
  background: #ececf0;
  color: var(--ink);
}
.delete-button:hover {
  background: var(--pill-bad-bg);
  color: var(--pill-bad-fg);
}
.table-footer,
.table-footer span {
  font-size: 13px;
}
.page-button {
  display: inline-grid;
  place-items: center;
}
.member-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Dashboard: coluna lateral */
.dash-side {
  display: grid;
  gap: 24px;
}
.consent-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px 22px;
}
.consent-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececf0;
}
.consent-bar .seg {
  flex: 0 1 0;
  min-width: 0;
}
.consent-bar .seg.in {
  background: #1a7f4b;
}
.consent-bar .seg.unknown {
  background: #b7b9c4;
}
.consent-bar .seg.out {
  background: #c0362c;
}
.consent-bar .seg + .seg {
  margin-left: 2px;
}
.consent-legend {
  display: grid;
  gap: 10px;
  margin: 0;
}
.consent-legend div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.consent-legend dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d3f49;
}
.consent-legend dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.in {
  background: #1a7f4b;
}
.dot.unknown {
  background: #b7b9c4;
}
.dot.out {
  background: #c0362c;
}
.consent-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* Telas "em breve" */
.soon {
  justify-items: center;
  text-align: center;
  max-width: 480px;
}
.soon h1 {
  font-size: 24px;
}
.soon p {
  font-size: 15px;
}
.soon-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff1e6;
  color: #b84a00;
}
.soon-icon .ico {
  width: 28px;
  height: 28px;
}

/* Aviso: canto inferior direito, discreto, com marca de confirmação */
.toast {
  /* No topo e ao centro: embaixo ele cobria a caixa de mensagem e o botão "Enviar modelo". */
  left: 50%;
  right: auto;
  top: 20px;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a7f4b;
  font-size: 12px;
  font-weight: 700;
}

/* Login: campos escuros com foco claro, cartão mais respirado */
.access-card {
  width: min(400px, calc(100vw - 32px));
  border-radius: 16px;
}
.access-card form {
  padding: 36px 32px 24px;
}
.access-card input {
  background: #1f2026;
  border: 1.5px solid #3a3b42;
}
.access-card input:focus-visible {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px #ff6a0040;
  outline: none;
}
.access-submit {
  letter-spacing: 0.05em;
}

/* Contatos como cartões no celular */
@media (max-width: 720px) {
  .page-heading .heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .page-heading .heading-actions .button.primary {
    order: -1;
    flex: 1 1 100%;
    min-height: 44px;
  }
  .page-heading .heading-actions .button {
    font-size: 14px;
    padding: 0 12px;
  }
  .page-heading .heading-actions .button.secondary {
    flex: 1;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    flex: 1 1 100%;
    max-width: none;
  }
  #contatos table,
  #contatos tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  #contatos thead {
    display: none;
  }
  #contact-rows tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name actions" "phone phone" "tags tags" "consent consent";
    gap: 6px 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  #contact-rows td {
    padding: 0;
    border: 0;
  }
  #contact-rows td:nth-child(1) {
    grid-area: name;
  }
  #contact-rows td:nth-child(2) {
    grid-area: phone;
    padding-left: 44px;
    font-size: 13px;
    color: var(--text-soft);
  }
  #contact-rows td:nth-child(3) {
    grid-area: tags;
    padding-left: 44px;
  }
  #contact-rows td:nth-child(4) {
    grid-area: consent;
    padding-left: 44px;
  }
  #contact-rows td:nth-child(5) {
    grid-area: actions;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .toast {
    right: 16px;
    left: 16px;
    top: 12px;
    bottom: auto;
    transform: none;
  }
}
@media (max-width: 900px) {
  .dash-side {
    order: -1;
  }
}

/* Equipe e demais etiquetas no mesmo padrão */
.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pill-ok-bg);
  color: var(--pill-ok-fg);
  font-size: 12px;
  font-weight: 500;
}
.access-badge.pending {
  background: #fff1e6;
  color: #8a3a00;
}
.access-badge.suspended,
.access-badge.blocked {
  background: var(--pill-bad-bg);
  color: var(--pill-bad-fg);
}
.company-code {
  font-size: 13px;
  color: var(--text-soft);
}
.footer-note,
.footer-note span {
  font-size: 13px;
  color: var(--text-soft);
}
.empty-state p {
  font-size: 14px;
}
.empty-state h3 {
  font-size: 16px;
}
.list-heading .button,
.button.ghost {
  font-size: 14px;
}

/* ===== Moldura preta: menu contínuo com a borda, conteúdo em painel claro arredondado ===== */
:root {
  --frame: #0c0c0e;
  --rail-bg: #0c0c0e;
  --rail-hover: #1d1d22;
  --rail-line: transparent;
  --card-radius: 24px;
  --frame-gap: 14px;
}
body {
  background: var(--frame);
}
.rail,
.sidebar {
  border-right: 0;
  background: var(--frame);
}
.rail-item {
  border-radius: 14px;
}
.rail-item[aria-current="page"] {
  border-radius: 999px;
  color: #fff;
}
.app-shell {
  margin: var(--frame-gap) var(--frame-gap) var(--frame-gap) calc(var(--rail-closed) + 2px);
  min-height: calc(100vh - 2 * var(--frame-gap));
  border-radius: 32px;
  background: var(--bg);
  overflow: clip;
}
body[data-rail="open"] .app-shell {
  margin-left: calc(var(--rail-open) + 2px);
}
.topbar {
  height: 88px;
  padding: 0 36px;
  background: transparent;
  border-bottom: 0;
}
.topbar-left {
  gap: 14px;
}
.greet {
  display: grid;
  gap: 2px;
}
.greet strong {
  font-size: 18px;
  font-weight: 650;
}
.greet .topbar-company {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.greet .topbar-company b {
  font-weight: 600;
  color: var(--ink);
}
.greet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.account-pill,
.avatar-button.account-pill {
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--frame);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.account-pill .avatar {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
}
.account-pill .chev {
  width: 16px;
  height: 16px;
}
.account-pill:hover {
  background: #26272e;
}

/* Cartões */
.contacts-panel,
.stats,
.kpis,
.access-card,
dialog {
  border: 0;
  border-radius: var(--card-radius);
}
.contacts-panel {
  box-shadow: 0 1px 2px #17181d0a;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 0;
  background: transparent;
}
.kpi {
  padding: 22px 26px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 1px 2px #17181d0a;
}
.kpi + .kpi {
  border-left: 0;
}
.kpi:first-child {
  background: var(--frame);
  color: #fff;
}
.kpi:first-child .kpi-label,
.kpi:first-child small {
  color: #c9cad1;
}
.kpi:nth-child(2) strong {
  color: var(--accent-text);
}
.stats {
  gap: 16px;
  background: transparent;
}
.stat {
  border-radius: var(--card-radius);
  background: #fff;
}
.dash-head {
  border-bottom: 0;
}

/* Últimos contatos: linhas brancas arredondadas */
.dash-panel {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.dash-grid > .dash-panel:first-child {
  padding: 0 0 4px;
}
.dash-grid > .dash-panel:first-child .dash-head {
  padding-left: 4px;
}
.dash-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
.dash-table th {
  padding: 4px 20px;
  border: 0;
}
.dash-table td {
  padding: 14px 20px;
  border: 0;
  background: #fff;
}
.dash-table tbody tr:hover td {
  background: #fff7f0;
}
.dash-table td:first-child {
  border-radius: 18px 0 0 18px;
}
.dash-table td:last-child {
  border-radius: 0 18px 18px 0;
}
.dash-table .row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.row-avatar {
  display: grid;
  place-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.dash-empty {
  border-radius: var(--card-radius);
  background: #fff;
}

/* Lateral: rosca de autorização */
.dash-side .dash-panel {
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 1px 2px #17181d0a;
  overflow: hidden;
}
.consent-bar {
  --in: 0;
  --unknown: 0;
  --out: 0;
  position: relative;
  display: grid;
  place-content: center;
  width: 176px;
  height: 176px;
  margin: 4px auto 8px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0 calc(var(--in) * 1%),
    var(--frame) 0 calc((var(--in) + var(--unknown)) * 1%),
    #d9d9df 0 calc((var(--in) + var(--unknown) + var(--out)) * 1%),
    #ececf0 0
  );
}
.consent-bar .seg {
  display: none;
}
.consent-bar::after {
  content: "Total\A " attr(data-total);
  position: absolute;
  inset: 22px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
}
.consent-bar.empty {
  background: #ececf0;
}
.consent-legend .dot.in {
  background: var(--accent);
}
.consent-legend .dot.unknown {
  background: var(--frame);
}
.consent-legend .dot.out {
  background: #d9d9df;
}

/* Controles */
.button,
.button.primary,
.button.secondary {
  border-radius: 14px;
}
input,
select {
  border-radius: 14px;
}
.access-card {
  border-radius: 28px;
}

/* Administração: mesma moldura */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 242px;
  color: var(--rail-text);
}
.app-shell:has(#empresas) {
  margin-left: calc(242px + 2px);
}
.topbar:has(.local-status) .avatar-button {
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--frame);
  color: #fff;
}

@media (max-width: 900px) {
  .kpis {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .app-shell,
  body[data-rail="open"] .app-shell,
  .app-shell:has(#empresas) {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .account-label,
  .account-pill .chev {
    display: none;
  }
  .account-pill {
    padding: 6px;
  }
}

/* ===== Administração no layout da referência: trilho de ícones, topo com busca, cartões e painel lateral ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: var(--rail-closed);
  padding: 18px 0;
}
.sidebar .brand {
  display: grid;
  place-content: center;
}
.sidebar .brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.sidebar .nav-item,
.sidebar-bottom a {
  position: relative;
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rail-text);
  cursor: pointer;
}
.sidebar .nav-item:hover,
.sidebar-bottom a:hover {
  background: var(--rail-hover);
  color: #fff;
}
.sidebar .nav-item.active {
  background: var(--accent);
  color: #fff;
}
.sidebar .nav-text {
  display: none;
}
.sidebar .nav-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
}
.app-shell:has(#empresas),
body:has(#empresas) .app-shell {
  margin-left: calc(var(--rail-closed) + 2px);
}

/* Topo: saudação, busca no centro, conta à direita */
.topbar:has(.topbar-search) {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 420px) 1fr;
  gap: 16px;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ececf0;
  color: var(--muted);
}
.topbar-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.topbar:has(.topbar-search) .topbar-right {
  justify-content: flex-end;
}
.topbar:has(.topbar-search) .avatar-button {
  flex-direction: row;
  padding: 6px 6px 6px 18px;
  font-size: 14px;
  font-weight: 600;
}
.topbar:has(.topbar-search) .avatar-button .avatar {
  background: var(--accent);
  color: #fff;
}

/* Cabeçalho: título e atalhos em pílula */
main#empresas .page-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
main#empresas .page-heading h1 span {
  display: none;
}
.admin-stats {
  gap: 16px;
}
.admin-stats .stat {
  box-shadow: 0 1px 2px #17181d0a;
}
.admin-stats .stat:first-child {
  background: var(--frame);
  color: #fff;
}
.admin-stats .stat:first-child .stat-label,
.admin-stats .stat:first-child small {
  color: #c9cad1;
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.heading-actions .button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px #17181d0a;
}
.heading-actions .button.primary {
  background: var(--accent);
  color: #fff;
}
.session-banner {
  border-radius: var(--card-radius);
}

/* Lista em linhas brancas + painel lateral com a rosca */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.admin-grid > .contacts-panel:first-child {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.admin-side {
  background: #fff;
}
.company-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.company-table th {
  padding: 4px 20px;
  border: 0;
  text-transform: none;
}
.company-table td {
  padding: 14px 20px;
  border: 0;
  background: #fff;
  font-size: 14px;
}
.company-table tbody tr:hover td {
  background: #fff7f0;
}
.company-table td:first-child {
  border-radius: 18px 0 0 18px;
}
.company-table td:last-child {
  border-radius: 0 18px 18px 0;
}
.company-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-name {
  font-size: 14px;
  font-weight: 600;
}
.company-code,
.account-kind {
  font-size: 12px;
  margin-top: 2px;
}
.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.company-actions .button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}
.empty-state,
.table-footer {
  border-radius: var(--card-radius);
  background: #fff;
}
@media (max-width: 1100px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .topbar:has(.topbar-search) {
    grid-template-columns: 1fr auto;
  }
  .topbar-search {
    display: none;
  }
  .sidebar {
    display: none;
  }
}

/* ===== Login empresarial: cena escura, cartão de vidro dividido, objetos 3D e ondas ===== */
#activation-dialog.auth-page,
#auth-dialog.auth-page {
  --o: #ff5800;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #070708;
  box-shadow: none;
  color: #f4f4f6;
  overflow: auto;
}
#activation-dialog.auth-page[open],
#auth-dialog.auth-page[open] {
  display: block;
}
#activation-dialog::backdrop,
#auth-dialog::backdrop {
  background: #070708;
}

/* Cena de fundo */
.auth-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  display: block;
  filter: blur(70px);
  border-radius: 42% 58% 61% 39% / 45% 38% 62% 55%;
  animation: blob-morph 18s ease-in-out infinite alternate;
}
.blob.b1 {
  width: 52vw;
  height: 52vw;
  left: -14vw;
  top: -12vw;
  background: #ff58003d;
}
.blob.b2 {
  width: 44vw;
  height: 44vw;
  right: -12vw;
  bottom: -16vw;
  background: #ff7a2a2e;
  animation-duration: 22s;
  animation-delay: -6s;
}
.blob.b3 {
  width: 30vw;
  height: 30vw;
  left: 38vw;
  top: 30vh;
  background: #ffffff10;
  animation-duration: 26s;
  animation-delay: -11s;
}
@keyframes blob-morph {
  to {
    transform: translate(5vw, 4vw) rotate(25deg) scale(1.1);
    border-radius: 60% 40% 35% 65% / 58% 62% 38% 42%;
  }
}
.auth-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}
.auth-waves path {
  stroke: url(#auth-wave-grad);
  stroke-width: 1.2;
  opacity: 0.55;
  animation: wave-sway var(--dur) ease-in-out var(--dl) infinite alternate;
}
@keyframes wave-sway {
  to {
    transform: translate(-60px, -26px);
  }
}

/* Cartão de vidro */
.auth-stage {
  --px: 0;
  --py: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(24px, 5vh, 56px) 24px;
}
.auth-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(1000px, 100%);
  min-height: clamp(540px, 68vh, 640px);
  border: 1px solid #ffffff22;
  border-radius: 32px;
  background: linear-gradient(150deg, #ffffff17, #ffffff06 55%, #ffffff0d);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 #ffffff33, 0 50px 120px #000000b3, 0 0 90px #ff580014;
  animation: auth-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
}

/* Lado visual */
.auth-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: 32px 0 0 32px;
}
.auth-brand-logo {
  width: clamp(120px, 11vw, 158px);
  height: auto;
}
.auth-eyebrow {
  margin: 0 0 12px;
  color: #ff8a3d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.auth-visual h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.auth-brand-lead {
  margin: 14px 0 0;
  max-width: 34ch;
  color: #b4b4be;
  font-size: 15px;
  line-height: 1.55;
}

/* Lado do formulário */
.auth-formside {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 56px);
  border-left: 1px solid #ffffff14;
  border-radius: 0 32px 32px 0;
  background: #0a0a0bd9;
}
.auth-tabs {
  position: relative;
  display: flex;
  gap: 28px;
  align-self: flex-start;
  margin-bottom: clamp(18px, 4vh, 34px);
  padding-bottom: 12px;
}
.auth-tabs a {
  color: #7d7d87;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-tabs a:hover,
.auth-tabs[data-active="company"] a[data-tab="company"],
.auth-tabs[data-active="individual"] a[data-tab="individual"] {
  color: #fff;
}
.tab-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--o);
  box-shadow: 0 0 12px #ff5800aa;
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.35s;
}
.auth-tabs[data-active="individual"] .tab-ink {
  width: 62px;
  transform: translateX(79px);
}
#activation-form,
#auth-form {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  background: transparent;
}
#activation-form h2,
#auth-form h2 {
  margin: 0;
  text-align: left;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.auth-sub {
  margin: 8px 0 clamp(20px, 3.6vh, 30px);
  color: #9a9aa4;
  font-size: 15px;
}
#activation-form label,
#auth-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #e4e4e8;
  font-size: 14px;
  font-weight: 500;
}
#activation-form label.fl,
#auth-form label.fl {
  position: relative;
  display: block;
  gap: 0;
}
#activation-form input,
#auth-form input {
  width: 100%;
  min-height: 58px;
  padding: 18px 16px 4px;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: #ffffff0b;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
#activation-form #company-code-field input,
#auth-form #company-code-field input {
  padding-top: 0;
  min-height: 52px;
}
#activation-form input:hover,
#auth-form input:hover {
  border-color: #ffffff38;
}
#activation-form input:focus-visible,
#auth-form input:focus-visible {
  border-color: var(--o);
  background: #ffffff10;
  box-shadow: 0 0 0 3px #ff580033, 0 0 26px #ff58002b;
  outline: none;
}
#activation-form input.ok,
#auth-form input.ok {
  border-color: #2f8f66;
}
.fl-text {
  position: absolute;
  left: 17px;
  top: 50%;
  color: #8d8d97;
  font-size: 15px;
  font-weight: 400;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.18s, font-size 0.18s, color 0.18s, transform 0.18s;
}
#activation-form input:focus ~ .fl-text,
#auth-form input:focus ~ .fl-text,
#activation-form input:not(:placeholder-shown) ~ .fl-text,
#auth-form input:not(:placeholder-shown) ~ .fl-text,
#activation-form input:-webkit-autofill ~ .fl-text,
#auth-form input:-webkit-autofill ~ .fl-text {
  top: 10px;
  color: #ff8a3d;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transform: none;
}
#activation-form .password-field,
#auth-form .password-field {
  position: relative;
  display: block;
}
#activation-form .password-field input,
#auth-form .password-field input {
  padding-right: 54px;
}
#activation-form .reveal,
#auth-form .reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b9c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
  font-size: 0;
  color: transparent;
  transform: translateY(-50%);
}
#activation-form .reveal[aria-pressed="true"],
#auth-form .reveal[aria-pressed="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a3d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 20L20 4'/%3E%3C/svg%3E");
}
#activation-form .reveal:hover,
#auth-form .reveal:hover {
  background-color: #ffffff14;
}
.auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 20px;
}
#activation-form .access-link,
#auth-form .access-link {
  padding: 2px 0;
  color: #ff8a3d;
  font-size: 14px;
  font-weight: 500;
}
#activation-form .access-link:hover,
#auth-form .access-link:hover {
  color: #ffa064;
  text-decoration: underline;
}
#activation-form .access-note,
#auth-form .access-note {
  margin: -10px 0 16px;
  text-align: left;
  color: #9a9aa4;
  font-size: 13px;
}
#activation-form .access-submit,
#auth-form .access-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #ffb27a55;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff7a2a, #ff5800 55%, #e04a00);
  box-shadow: 0 12px 34px #ff580040, inset 0 1px 0 #ffffff40;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
#activation-form .access-submit::before,
#auth-form .access-submit::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, #ffffff55, transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: auth-shine 4.6s ease-in-out 1.4s infinite;
  pointer-events: none;
}
@keyframes auth-shine {
  45%, 100% {
    transform: translateX(360%) skewX(-18deg);
  }
}
#activation-form .access-submit .ico,
#auth-form .access-submit .ico {
  width: 19px;
  height: 19px;
  stroke-width: 2;
  transition: transform 0.2s;
}
#activation-form .access-submit:hover:not(:disabled),
#auth-form .access-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 42px #ff580060, inset 0 1px 0 #ffffff40;
}
#activation-form .access-submit:hover:not(:disabled) .ico,
#auth-form .access-submit:hover:not(:disabled) .ico {
  transform: translateX(4px);
}
#activation-form .access-submit:active:not(:disabled),
#auth-form .access-submit:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
#activation-form .access-submit:focus-visible,
#auth-form .access-submit:focus-visible {
  outline: 3px solid #ff580066;
  outline-offset: 3px;
}
#activation-form .access-submit:disabled,
#auth-form .access-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}
#activation-form .access-submit:disabled .ico,
#auth-form .access-submit:disabled .ico {
  display: none;
}
#activation-form .access-submit:disabled::after,
#auth-form .access-submit:disabled::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
#activation-form .form-error,
#auth-form .form-error {
  margin: 0 0 14px;
  border: 1px solid #ff8d8d55;
  border-radius: 12px;
  background: #2a1414;
  color: #ffb0a8;
  font-size: 14px;
}
.auth-caps {
  margin: -4px 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #2b1a0d;
  color: #ffb27a;
  font-size: 13px;
}
.auth-made {
  margin: 22px 0 0;
  text-align: center;
  color: #5b5d66;
  font-size: 12px;
}
#activation-form:has(#auth-error:not([hidden])),
#auth-form:has(#auth-error:not([hidden])) {
  animation: auth-shake 0.4s;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes auth-shake {
  20%, 60% {
    transform: translateX(-6px);
  }
  40%, 80% {
    transform: translateX(6px);
  }
}
@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-visual {
    padding: 24px 24px 8px;
    border-radius: 32px 32px 0 0;
  }
  .auth-visual-text {
    display: none;
  }
  .auth-formside {
    border-left: 0;
    border-radius: 0 0 32px 32px;
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .blob,
  .auth-waves path,
  #activation-form .access-submit::before,
  #auth-form .access-submit::before,
  #activation-form .access-submit:disabled::after,
  #auth-form .access-submit:disabled::after,
  #activation-form,
  #auth-form {
    animation: none !important;
  }
}

/* ===== Vitrine do login: mini-dashboard de vidro e o robô da LLP ===== */
.auth-visual {
  gap: 12px;
}
.auth-showcase {
  position: relative;
  flex: 1;
  min-height: 250px;
  pointer-events: none;
}
.glass-card {
  position: absolute;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  background: linear-gradient(150deg, #ffffff1f, #ffffff08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 #ffffff33, 0 24px 50px #00000080;
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px);
  transition: translate 0.3s ease-out;
}
.gc-chart {
  top: 0;
  left: 0;
  width: 66%;
  padding: 14px 16px 10px;
  animation: gc-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
.gc-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.gc-head b,
.gc-lines b,
.gc-pill {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #ffffff2e;
}
.gc-head b:first-child {
  width: 38%;
}
.gc-head b:last-child {
  width: 18%;
  background: #ff58008a;
}
.gc-chart svg {
  display: block;
  width: 100%;
  height: 78px;
  overflow: visible;
}
.gc-line {
  fill: none;
  stroke: #ff8a3d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px #ff5800);
  animation: gc-draw 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}
.gc-area {
  opacity: 0;
  animation: gc-fade 1.2s ease 1.8s forwards;
}
.gc-list {
  left: 4%;
  bottom: 0;
  width: 60%;
  display: grid;
  gap: 10px;
  padding: 14px;
  animation: gc-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both;
}
.gc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: gc-fade 0.6s ease calc(1s + var(--i) * 0.22s) forwards;
}
.gc-av {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffb27a, #ff5800);
}
.gc-av.alt {
  background: linear-gradient(145deg, #ffffff55, #ffffff1a);
}
.gc-lines {
  flex: 1;
  display: grid;
  gap: 5px;
}
.gc-lines b:first-child {
  width: 80%;
}
.gc-lines b:last-child {
  width: 52%;
  height: 5px;
  opacity: 0.6;
}
.gc-pill {
  width: 34px;
  height: 14px;
  border-radius: 8px;
  background: #3ecf8e44;
}
.robot-glow {
  position: absolute;
  right: -12%;
  bottom: -16%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ff58005c, transparent 66%);
  animation: robot-pulse 4s ease-in-out infinite alternate;
}
.robot {
  position: absolute;
  right: -3%;
  bottom: -14px;
  width: 52%;
  height: auto;
  filter: drop-shadow(0 22px 28px #000000aa) drop-shadow(0 0 22px #ff580055);
  translate: calc(var(--px) * -14px) calc(var(--py) * -8px);
  rotate: calc(var(--px) * 2.5deg);
  transition: translate 0.3s ease-out, rotate 0.3s ease-out;
  animation: gc-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.7s both, robot-float 5s ease-in-out 1.6s infinite alternate;
}
@keyframes gc-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
}
@keyframes gc-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes gc-fade {
  to {
    opacity: 1;
  }
}
@keyframes robot-float {
  to {
    transform: translateY(-12px);
  }
}
@keyframes robot-pulse {
  to {
    opacity: 0.6;
    transform: scale(1.08);
  }
}
@media (max-width: 900px) {
  .auth-showcase {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gc-chart,
  .gc-list,
  .robot,
  .robot-glow {
    animation: none !important;
  }
  .gc-line {
    stroke-dashoffset: 0;
    animation: none;
  }
  .gc-area,
  .gc-row {
    opacity: 1;
    animation: none;
  }
  .glass-card,
  .robot {
    translate: none;
    rotate: none;
  }
}

/* Ativação: ajustes próprios */
#activation-form .access-company {
  justify-self: start;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #ff580022;
  color: #ffb27a;
  font-size: 13px;
  font-weight: 600;
}
.auth-row.back {
  justify-content: center;
  margin: 14px 0 0;
}

/* Perfis sem permissão não veem as ações (o servidor também recusa). */
body.no-contacts-write :is(#new-contact, #dash-new-contact, #dash-create, #tag-form, .edit-button),
body.no-contacts-delete .delete-button,
body.no-imports :is(#dash-import, #open-imports-heading) {
  display: none !important;
}

/* Ficha do contato: bloqueio e histórico. */
.checkbox-line { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.checkbox-line input { width: auto; }
.blocked-badge {
  display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; background: #fde8e8; color: #9b1c1c;
}
.contact-history { border-top: 1px solid var(--line, #e5e5e5); margin-top: 0.5rem; padding-top: 0.75rem; }
.contact-history h3 { font-size: 0.9rem; margin: 0 0 0.5rem; }
.contact-history ol { list-style: none; margin: 0; padding: 0; max-height: 10rem; overflow-y: auto; }
.contact-history li { padding: 0.3rem 0; font-size: 0.85rem; }
.contact-history small { color: var(--muted, #666); }

/* Campanhas */
.campaign-modal { max-width: 640px; }
.campaign-step { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem; margin: 0 0 0.75rem; }
.campaign-step legend { font-weight: 700; padding: 0 0.35rem; }
.campaign-sample { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; }
.campaign-status { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #f1f1f4; }
.campaign-status.running, .campaign-status.scheduled { background: #fff1e6; color: var(--accent-text, #b84a00); }
.campaign-status.completed { background: #e7f6ec; color: #1d6b38; }
.campaign-status.failed, .campaign-status.cancelled { background: #fde8e8; color: #9b1c1c; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Dashboard: envios */
#sends-panel { margin-bottom: 1rem; }
#sends-panel .kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sends-chart { margin: 0.75rem 0; }
.sends-chart figcaption { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.sends-chart svg { display: block; width: 100%; height: 140px; }
.sends-chart .bar { fill: var(--accent-text, #b84a00); }
.sends-chart .hit { fill: transparent; }
.sends-chart .hit:hover + .bar, .sends-chart .bar:hover { fill: var(--accent, #ff6a00); }
.sends-chart .base { stroke: var(--line); stroke-width: 1; }
.sends-chart details { margin-top: 0.5rem; font-size: 0.85rem; }

/* Formulários novos: caixas de texto e rótulos dentro de etapas/seções seguem o padrão dos campos. */
textarea {
  font: inherit;
  border: 1px solid #dedee6;
  border-radius: 14px;
  padding: 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
  resize: vertical;
}
textarea:focus-visible {
  outline: 3px solid #e85d00;
  outline-offset: 3px;
}
.campaign-step > label,
.contact-history > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #5b5b6d;
  margin: 12px 0;
}
.campaign-step > label > :is(input:not([type="radio"], [type="checkbox"]), select, textarea),
.campaign-step > input,
.contact-history > label > :is(input, select, textarea) {
  width: 100%;
}
form label.checkbox-line {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--ink);
}

/* Tabelas dos relatórios: rolam de lado no celular em vez de virar cartões. */
.report-scroll { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 420px; }
.report-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.78rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); }
.report-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.report-table td:not(:first-child), .report-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
form label.checkbox-line > input {
  width: auto;
  margin: 0;
}

/* Painel da LLP: uso da plataforma */
.usage-panel { background: white; border-radius: 24px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.usage-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.usage-head h2 { margin: 0 0 0.25rem; }
.usage-head p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.usage-controls { display: flex; gap: 0.5rem; align-items: center; }
.usage-health { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0; }
.usage-health li { display: flex; gap: 0.4rem; align-items: baseline; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.82rem; }
.usage-health li.ok { background: #e7f6ec; color: #1d6b38; }
.usage-health li.bad { background: #fde8e8; color: #9b1c1c; }
.usage-alerts h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; }
.usage-alerts ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.usage-alerts li.calm { list-style: none; margin-left: -1.1rem; color: var(--muted); }
.usage-table-wrap { overflow-x: auto; margin-top: 1rem; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
.usage-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.76rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.usage-table td { padding: 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.usage-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.usage-table th:nth-child(n + 3):nth-child(-n + 6) { text-align: right; }

/* Tour guiado do primeiro acesso */
.tour-card {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 32px));
  background: #0c0c0f;
  color: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 18px 48px #0006;
}
.tour-card.tour-floating { bottom: auto; transform: none; }
.tour-card h2 { margin: 0.2rem 0 0.4rem; font-size: 1.1rem; }
.tour-card p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; color: #e3e3ea; }
.tour-count { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent, #ff6a00); font-weight: 700; }
.tour-actions { display: flex; gap: 0.5rem; justify-content: flex-end; align-items: center; }
.tour-actions .button.ghost { color: #fff; background: transparent; border-color: #ffffff40; }
.tour-actions .button.ghost:first-child { margin-right: auto; }
.tour-focus {
  position: relative;
  z-index: 999;
  outline: 3px solid var(--accent, #ff6a00) !important;
  outline-offset: 4px;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px #0c0c0f66;
}
@media (prefers-reduced-motion: no-preference) {
  .tour-card:not([hidden]) { animation: tour-in 160ms ease-out; }
}
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }

/* Jeito fácil: mais opções, envio e caixa de entrada */
.more-options { margin: 0.75rem 0; border: 1px solid var(--line); border-radius: 12px; padding: 0.25rem 0.9rem 0.75rem; }
.more-options > summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; color: var(--accent-text); }
.more-options > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
#contact-duplicate .button { margin-left: 0.5rem; }
.row-actions .send-button { padding: 0.3rem 0.75rem; font-size: 0.82rem; }
.send-results { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.88rem; }
.send-results li { padding: 0.25rem 0; border-bottom: 1px solid var(--line-soft, var(--line)); }

/* Conversas no jeito do WhatsApp, com as cores da LLP */
.wa { --wa-wall: #f5efe8; --wa-in: #ffffff; --wa-out: var(--accent-light, #fff1e6);
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr; height: calc(100vh - 150px); min-height: 520px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06); }
.wa [hidden] { display: none !important; }
.wa-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.wa-side-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 0.5rem; font-size: 1.15rem; }
.wa-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: inherit; cursor: pointer; }
.wa-icon:hover { background: var(--bg); }
.wa-icon:focus-visible, .wa-item:focus-visible, .wa-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wa-search { display: flex; align-items: center; gap: 0.5rem; margin: 0 0.75rem 0.5rem; padding: 0 0.75rem; border-radius: 10px; background: var(--bg); color: var(--muted); }
.wa-search input { border: 0; background: none; padding: 0.55rem 0; width: 100%; font: inherit; color: inherit; }
.wa-search input:focus { outline: none; }
.wa-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.wa-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.wa-list-empty { padding: 1.5rem 1rem; color: var(--muted); font-size: 0.9rem; }
.wa-item { display: flex; gap: 0.75rem; align-items: center; width: 100%; padding: 0.7rem 1rem; border: 0; border-bottom: 1px solid var(--line-soft, var(--line)); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wa-item:hover { background: var(--bg); }
.wa-item[aria-current="true"] { background: var(--accent-light); }
.wa-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 700; font-size: 0.9rem; }
.wa-item-body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.wa-item-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.wa-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-top small { flex: none; color: var(--muted); font-size: 0.75rem; }
.wa-item-preview { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 1rem; }
.wa-you { color: var(--text-soft, var(--muted)); }
.wa-open-dot { position: absolute; right: 0; bottom: 0.3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.wa-chat { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background-color: var(--wa-wall);
  background-image: radial-gradient(rgba(255,106,0,.07) 1px, transparent 1px); background-size: 18px 18px; }
.wa-placeholder { margin: auto; text-align: center; color: var(--muted); padding: 2rem; }
.wa-placeholder-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-light); color: var(--accent-text); margin-bottom: 0.75rem; }
.wa-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.wa-back { display: none; }
.wa-who { display: flex; flex-direction: column; min-width: 0; }
.wa-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-who small { color: var(--muted); font-size: 0.78rem; }
.wa-messages { list-style: none; margin: 0; padding: 1rem 6%; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; }
.wa-day { align-self: center; margin: 0.6rem 0; padding: 0.25rem 0.7rem; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 0.75rem; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-msg { max-width: min(75%, 34rem); padding: 0.4rem 0.6rem 0.3rem; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 0.1rem; word-wrap: break-word; }
.wa-msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.wa-text { white-space: pre-wrap; line-height: 1.35; }
.wa-template { font-size: 0.82rem; font-weight: 600; color: var(--accent-text); }
.wa-meta { align-self: flex-end; display: inline-flex; gap: 0.25rem; align-items: center; font-size: 0.68rem; color: var(--muted); }
.wa-msg.via-app { border: 1px dashed var(--accent); }
.wa-via-app { font-style: italic; color: var(--accent-text); }
.wa-tick { letter-spacing: -0.15em; font-weight: 700; }
.wa-tick.read { color: var(--accent); }
.wa-tick.failed, .wa-tick.uncertain { color: #b42318; letter-spacing: 0; }
.wa-msg-error { font-size: 0.75rem; color: #b42318; }
.wa-error { margin: 0 1rem 0.5rem; }
.wa-composer { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.6rem 0.75rem; background: #fff; border-top: 1px solid var(--line); }
.wa-composer textarea { flex: 1; resize: none; max-height: 140px; padding: 0.6rem 0.9rem; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); font: inherit; line-height: 1.35; }
.wa-composer textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.wa-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #111; cursor: pointer; transition: transform 120ms ease-out; }
.wa-send:hover { transform: scale(1.05); }
.wa-send:active { transform: scale(0.95); }
.wa-send:disabled { opacity: 0.5; cursor: progress; }
.wa-closed { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: #fff; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-soft, var(--muted)); }
.wa-closed p { flex: 1; margin: 0; min-width: 14rem; }
@media (prefers-reduced-motion: reduce) { .wa-send { transition: none; } }
@media (max-width: 720px) {
  .wa { grid-template-columns: 1fr; height: calc(100vh - 110px); border-radius: 12px; }
  .wa.chat-open .wa-side { display: none; }
  .wa:not(.chat-open) .wa-chat { display: none; }
  .wa-back { display: inline-grid; }
  .wa-messages { padding: 0.75rem; }
  .wa-msg { max-width: 88%; }
}

.wa-badge { position: absolute; right: 0; bottom: 0.2rem; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: #111; font-size: 0.75rem; font-weight: 700; }
.wa-unread-when { color: var(--accent-text) !important; font-weight: 700; }
.wa-media { display: block; margin-bottom: 0.2rem; }
.wa-media img, .wa-media video { display: block; max-width: min(100%, 320px); max-height: 320px; border-radius: 8px; background: var(--bg); }
.wa-media audio { display: block; width: min(100%, 280px); }
.wa-media-note { font-size: 0.82rem; color: var(--muted); }
.wa-media-bad { color: #b42318; }
.wa-file { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* Importação com prévia */
.import-preview { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 1rem; margin: 0.75rem 0; background: var(--bg); }
.import-summary { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.35rem; }
.import-counts, .import-problems { margin: 0.25rem 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--muted); }
.import-problems li { color: #b42318; }
.import-sample-wrap { margin-top: 0.5rem; max-height: 11rem; overflow: auto; }
.import-sample { width: 100%; min-width: 0; table-layout: fixed; font-size: 0.85rem; border-collapse: collapse; }
.import-sample th, .import-sample td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-sample th, .import-sample td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--line-soft, var(--line)); }
.import-consent { border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 1rem; margin: 0.75rem 0; }
.import-consent small { display: block; margin-top: 0.4rem; color: var(--muted); }

.import-modal .more-options label,
.import-consent label:not(.checkbox-line) { display: flex; flex-direction: column; gap: 8px; margin: 0.6rem 0; font-weight: 600; font-size: 0.85rem; }
.import-modal .more-options select,
.import-consent input[type="text"], .import-consent input:not([type]) { width: 100%; }

.named-vars { display: grid; gap: 0.5rem; margin: 0.5rem 0; }
.named-vars label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.named-vars small { color: var(--muted); }
#send-vars { display: grid; gap: 0.5rem; margin: 0.5rem 0; }
#send-vars label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
#send-vars input { width: 100%; }
#send-vars small { color: var(--muted); font-weight: 400; }
