:root {
  --io-ink: #143b32;
  --io-ink-2: #215447;
  --io-paper: #f2ede2;
  --io-paper-2: #faf7ef;
  --io-paper-3: #fffdf8;
  --io-rule: #d7cebd;
  --io-muted: #506159;
  --io-gold: #c69a38;
  --io-gold-soft: #efe0b8;
  --io-red: #b95842;
  --io-depth: 0 24px 60px rgba(25, 54, 45, .14), 0 4px 12px rgba(25, 54, 45, .07);
  --io-panel-depth: 0 16px 34px rgba(25, 54, 45, .09), 0 2px 6px rgba(25, 54, 45, .05);
  --io-page-gutter: clamp(1.25rem, 4vw, 5rem);
}

html {
  background: var(--io-paper);
  scrollbar-color: #819c91 var(--io-paper);
}

body {
  background: var(--io-paper);
  color: var(--io-ink);
  font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

#container [class~="bg-[#7BA883]"] {
  background-color: #356b59 !important;
}

#container [class~="bg-[#5A8F64]"] {
  background-color: #315f50 !important;
}

#container [class~="text-[#7BA883]"],
#container [class~="text-[#5A8F64]"] {
  color: #356b59 !important;
}

body[data-io-page="workspace"] #container .text-gray-400 {
  color: #596962 !important;
}

::selection {
  color: #fff;
  background: var(--io-ink-2);
}

#container :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--io-gold) 75%, white);
  outline-offset: 3px;
}

#container a {
  text-underline-offset: .22em;
}

/* Shared vocabulary for every authenticated route, including detailed lists
   and patient views that retain their original component structure. */
body[data-io-page="workspace"] #container {
  background: #eee9df;
}

body[data-io-page="workspace"] #container :is(
  .min-h-screen.bg-gray-50,
  .min-h-screen[class*="bg-[#F6F8FA]"]
) {
  background-color: #eee9df !important;
}

body[data-io-page="workspace"] #container :is(h1, h2) {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.025em;
}

body[data-io-page="workspace"] #container [data-slot="card"] {
  background-color: var(--io-paper-3);
  border-color: var(--io-rule);
  border-radius: 14px;
  box-shadow: var(--io-panel-depth);
}

/* Navigation */
.io-home-frame,
.io-nav-shell,
.io-footer-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--io-page-gutter) !important;
}

.io-header {
  border-color: var(--io-rule) !important;
  background: rgba(255, 253, 248, .96) !important;
  box-shadow: 0 1px 0 rgba(20, 59, 50, .06);
}

.io-nav-shell {
  min-height: 70px;
}

.io-nav-shell img {
  filter: saturate(.9) contrast(1.04);
}

.io-brand-lockup {
  padding-left: .85rem;
  border-left: 1px solid var(--io-rule);
  color: var(--io-ink);
}

.io-brand-lockup strong {
  font-family: Cambria, Georgia, serif;
  font-size: .98rem;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.io-brand-lockup small {
  margin-top: .25rem;
  color: var(--io-muted);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Landing — first viewport */
.io-landing {
  color: var(--io-ink);
  background: var(--io-paper-2) !important;
}

.io-hero {
  min-height: min(680px, calc(100vh - 118px));
  color: var(--io-ink) !important;
  background:
    linear-gradient(90deg, var(--io-gold) 0 8px, transparent 8px),
    var(--io-paper) !important;
  border-bottom: 1px solid var(--io-rule);
}

.io-hero-pattern {
  display: none;
}

.io-hero-inner {
  min-height: min(680px, calc(100vh - 118px));
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.io-hero-content {
  width: 100%;
}

.io-hero-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr) !important;
  gap: clamp(3rem, 5vw, 6rem) !important;
}

.io-hero-inner > div {
  max-width: none !important;
  margin-inline: 0 !important;
}

.io-hero-copy {
  position: relative;
  z-index: 2;
  text-align: left !important;
}

.io-hero-copy > div[class*="justify-center"] {
  justify-content: flex-start !important;
}

.io-hero-title {
  max-width: 13.5ch;
  color: var(--io-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.3vw, 5.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em;
  line-height: .98 !important;
}

.io-hero-title-accent {
  display: inline;
  color: var(--io-ink-2) !important;
  box-shadow: inset 0 -.19em 0 var(--io-gold-soft);
}

.io-hero-lede {
  max-width: 58ch;
  margin-inline: 0 !important;
  color: #425d54 !important;
  line-height: 1.75 !important;
}

.io-hero-primary {
  color: #fff !important;
  background: var(--io-ink) !important;
  box-shadow: 0 10px 22px rgba(20, 59, 50, .18);
}

.io-hero-primary:hover {
  background: var(--io-ink-2) !important;
}

.io-hero-secondary {
  color: var(--io-ink) !important;
  background: transparent !important;
  border-color: #8fa399 !important;
}

.io-hero-secondary:hover {
  color: #fff !important;
  background: var(--io-ink-2) !important;
}

.io-hero-proof {
  margin-inline: 0 !important;
  border-top: 1px solid #c9bfad;
}

.io-hero-proof > div {
  text-align: left !important;
}

.io-hero-proof > div {
  position: relative;
}

.io-hero-proof > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -.5rem;
  width: 1px;
  height: 100%;
  background: #d5ccbc;
}

.io-hero-proof [class*="text-white"] {
  color: var(--io-ink) !important;
}

.io-hero-proof .text-xs {
  color: var(--io-muted) !important;
}

.io-paper-stack {
  isolation: isolate;
  transform: rotate(1deg);
}

.io-hero-visual {
  min-width: 0;
  width: min(100%, 620px);
  justify-self: end;
  margin-right: clamp(0rem, 1.5vw, 2rem);
}

.io-paper-stack::before,
.io-paper-stack::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  background: #e8dfce;
  border: 1px solid #cfc4b1;
  box-shadow: 0 12px 25px rgba(30, 58, 49, .08);
}

.io-paper-stack::before {
  transform: translate(-20px, 17px) rotate(-4deg);
}

.io-paper-stack::after {
  transform: translate(18px, 12px) rotate(3deg);
  background: #f4e9cf;
}

.io-dashboard-sheet {
  position: relative;
  color: var(--io-ink);
  background: var(--io-paper-3);
  border: 1px solid #cfc4b1;
  box-shadow: var(--io-depth);
}

.io-dashboard-sheet::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e1d7c5 49%, var(--io-paper-3) 50%);
  border-left: 1px solid #cfc4b1;
  border-top: 1px solid #cfc4b1;
  pointer-events: none;
}

.io-sheet-toolbar {
  border-color: var(--io-rule) !important;
}

.io-sheet-toolbar span:last-child {
  color: var(--io-muted) !important;
}

.io-sheet-metrics > div {
  color: var(--io-ink) !important;
  background: #edf2ed !important;
  border-radius: 6px !important;
}

.io-sheet-metrics > div:first-child {
  background: #e8eef2 !important;
}

.io-sheet-metrics > div:last-child {
  background: var(--io-gold-soft) !important;
}

.io-sheet-progress [class*="text-white"] {
  color: #5a6d65 !important;
}

.io-sheet-progress [class*="bg-white"] {
  background: #e9e5da !important;
}

.io-sheet-badge {
  color: #fff;
  background: var(--io-ink-2);
  border: 1px solid #6f9184;
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(20, 59, 50, .16);
}

.io-sheet-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--io-rule);
  color: var(--io-ink-2);
  font-size: .75rem;
}

.io-sheet-action span,
.io-sheet-action strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.io-sheet-action strong {
  padding: .45rem .65rem;
  background: var(--io-gold-soft);
  border-radius: 5px;
}

/* Product scope band */
.io-indicator-ribbon {
  color: #eef5f1;
  background: var(--io-ink);
  border-bottom: 1px solid #42685c;
}

.io-indicator-ribbon > .io-home-frame > div {
  max-width: none !important;
  justify-content: flex-start !important;
}

.io-indicator-chip {
  color: #eef5f1;
  border: 1px solid rgba(238, 245, 241, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

/* Transformation narrative */
.io-transformation {
  background: var(--io-paper-3) !important;
}

.io-transformation h2,
.io-process h2,
.io-features h2 {
  color: var(--io-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}

.io-transformation > .io-home-frame > div:first-child,
.io-process > .io-home-frame > div:first-child,
.io-features > .io-home-frame > div:first-child,
.io-pricing > .io-home-frame > div:first-child {
  max-width: 52rem;
  margin-right: auto;
  margin-left: 0;
  text-align: left !important;
}

.io-transformation > .io-home-frame > div:first-child p,
.io-process > .io-home-frame > div:first-child p,
.io-features > .io-home-frame > div:first-child p,
.io-pricing > .io-home-frame > div:first-child p {
  margin-right: 0;
  margin-left: 0 !important;
}

.io-before-after,
.io-metrics-ledger,
.io-process-track,
.io-feature-list,
.io-pricing > .io-home-frame > div:nth-child(2) {
  max-width: none !important;
}

.io-before-after {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
}

.io-before-card,
.io-after-card {
  border: 1px solid var(--io-rule);
  box-shadow: var(--io-panel-depth);
}

.io-before-card {
  background: #f8f4ec !important;
}

.io-after-card {
  background: #fffdf8 !important;
}

.io-after-card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e6dcc9 49%, #fffdf8 50%);
  border-left: 1px solid var(--io-rule);
  border-top: 1px solid var(--io-rule);
}

.io-metrics-ledger {
  border-top: 1px solid var(--io-rule);
  border-bottom: 1px solid var(--io-rule);
}

.io-metric-item {
  background: transparent !important;
}

.io-metric-item:not(:last-child) {
  border-right: 1px solid var(--io-rule);
}

.io-metric-item [class*="text-[#2d6a4f]"] {
  color: var(--io-ink-2) !important;
}

/* Four-step operating flow */
.io-process {
  color: var(--io-ink);
  background: var(--io-paper) !important;
}

.io-process-track > .hidden {
  background: #b8ad99 !important;
}

.io-process-step {
  position: relative;
  align-items: flex-start !important;
  padding-right: clamp(.25rem, 1vw, 1rem);
  text-align: left !important;
}

.io-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -1.5rem;
  width: 3rem;
  border-top: 1px solid #aaa08f;
}

.io-process-icon {
  color: var(--io-ink-2);
  background: #fffdf8;
  border: 1px solid #bfb4a2;
  border-radius: 14px !important;
  box-shadow: 0 9px 18px rgba(25, 54, 45, .07);
}

/* Nota que situa a plataforma diante dos indicadores oficiais do SIAPS.
   Divide a largura e a borda direita com o convite para o video: os dois
   fecham a secao como um bloco unico do lado direito, retomando a leitura
   onde a quarta etapa termina. */
.io-process-note {
  width: min(100%, 760px);
  margin: 4rem 0 0 auto;
  padding: 1.75rem 2rem;
  color: #3f4f47;
  background: var(--io-paper-2);
  border: 1px solid var(--io-rule);
  border-radius: 14px;
}

.io-process-note p {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.65;
  text-align: left;
}

/* Empilhados ate 1199px: a nota fica com a mesma largura e a mesma borda
   direita do convite para o video, com um intervalo curto entre os dois. */
.io-process-note + div {
  margin-top: 1.25rem !important;
}

/* A partir de 1280px ha largura para os dois lado a lado. A faixa vira uma
   grade de duas colunas; cabecalho e as quatro etapas continuam ocupando a
   linha inteira. */
@media (min-width: 1280px) {
  .io-process > .io-home-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: stretch;
  }

  .io-process > .io-home-frame > div:first-child,
  .io-process > .io-home-frame > .io-process-track {
    grid-column: 1 / -1;
  }

  .io-process-note {
    grid-column: 1;
    width: auto;
    margin: 4rem 0 0;
    padding: 1.75rem 1.5rem;
  }

  /* A coluna acompanha a largura da tela, entao o corpo acompanha junto:
     assim a linha fica perto de 68 caracteres em qualquer monitor, em vez de
     encolher num notebook e esticar num monitor largo. O max-width segura o
     caso extremo das telas muito largas. */
  .io-process-note p {
    max-width: 72ch;
    font-size: clamp(1rem, 1.25vw - 2px, 1.375rem);
  }

  .io-process-note + div {
    grid-column: 2;
    margin-top: 4rem !important;
  }

  /* Os dois painéis terminam na mesma altura. */
  .io-process > .io-home-frame .io-video-callout {
    width: 100%;
    height: 100%;
  }
}

.io-video-callout {
  width: min(100%, 760px);
  /* max-w-xl do utilitario limitava o card a 576px e anulava a largura
     declarada logo acima; sem isso o card nao fecha com a nota. */
  max-width: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: left;
  color: #f7f2e8;
  background: var(--io-ink);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(20, 59, 50, .15);
}

.io-video-callout h3,
.io-video-callout p {
  color: inherit !important;
}

.io-video-callout > div:first-child {
  color: var(--io-gold);
  background: rgba(255, 255, 255, .08) !important;
}

.io-feature-list {
  border-top: 1px solid var(--io-rule);
}

.io-feature-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-content: center;
  min-height: 150px;
  border-bottom: 1px solid var(--io-rule);
}

.io-feature-row:nth-child(odd) {
  border-right: 1px solid var(--io-rule);
}

.io-feature-row > div {
  grid-row: 1 / span 2;
  margin: 0 !important;
  border-radius: 12px !important;
}

.io-feature-row h3,
.io-feature-row p {
  grid-column: 2;
}

.io-pricing {
  background: var(--io-paper-3) !important;
  border-top: 1px solid var(--io-rule);
}

.io-pricing h2 {
  color: var(--io-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}

.io-pricing > .io-home-frame > p {
  max-width: 62rem;
  margin-right: 0;
  margin-left: 0 !important;
  text-align: left !important;
}

.io-pricing [class*="rounded-2xl"][class*="border-2"] {
  border-color: var(--io-rule) !important;
  background: #fffdf8 !important;
  box-shadow: 0 12px 26px rgba(25, 54, 45, .07);
}

.io-pricing [class*="rounded-2xl"][class*="border-2"]:has(> span[class*="absolute"]) {
  border-color: #6f8f82 !important;
  background: #f3f6f1 !important;
  box-shadow: 0 20px 40px rgba(25, 54, 45, .11);
}

.io-final-cta {
  color: #fff;
  background: var(--io-ink) !important;
}

.io-final-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(18vw, 220px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, transparent 49.5%, rgba(239, 224, 184, .18) 50%);
  pointer-events: none;
}

.io-final-cta > div.relative {
  width: 100%;
  max-width: none !important;
  display: grid;
  grid-template-columns: 64px minmax(0, 760px);
  column-gap: 2rem;
  margin-inline: 0;
  text-align: left !important;
}

.io-final-cta > div.relative > div:first-child {
  grid-row: 1 / span 3;
  margin: 0 !important;
}

.io-final-cta > div.relative > :is(h2, p, div:last-child) {
  grid-column: 2;
}

.io-final-cta > div.relative > div:last-child {
  justify-content: flex-start !important;
}

.io-tour-hero {
  color: #fff;
  background: var(--io-ink) !important;
  border-bottom: 8px solid var(--io-gold);
}

.io-tour-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}

.io-footer {
  color: #dfe9e4 !important;
  background: #0f3029 !important;
  border-color: #31594e !important;
}

.io-footer :is(h4, p, a, span) {
  color: inherit !important;
}

.io-footer a:hover {
  color: #fff6da !important;
}

.io-footer a[class*="bg-white"] {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* Repeated-use workspace */
.io-workspace,
.io-upload,
.io-quality {
  color: var(--io-ink);
  background: #eee9df !important;
}

.io-workspace-main,
.io-upload-main,
.io-quality-main {
  max-width: 1240px !important;
}

.io-workspace-head {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #cfc6b6;
}

.io-workspace-head h1,
.io-quality-summary h1 {
  color: var(--io-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600 !important;
  letter-spacing: -.025em;
}

.io-unit-base-count {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 92px;
  padding: 1rem 1.1rem;
  color: var(--io-ink);
  background: var(--io-paper);
  border: 1px solid var(--io-rule);
  border-radius: 12px;
}

.io-unit-base-icon {
  flex: 0 0 auto;
  color: var(--io-ink-2);
}

.io-unit-base-number {
  font-family: Cambria, Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.025em;
}

.io-unit-base-label {
  margin-top: .35rem;
  color: #53635c;
  font-size: .82rem;
  line-height: 1.35;
}

/* Legal consent and professional attestation */
.io-legal-consent {
  padding: .9rem 1rem;
  color: #31483f;
  background: #f4f0e7;
  border: 1px solid #cfc6b6;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.55;
}

.io-legal-consent a {
  color: var(--io-ink-2);
}

.io-legal-consent-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-top: .7rem;
  color: var(--io-ink);
  font-weight: 600;
  cursor: pointer;
}

.io-legal-consent-check input {
  width: 1rem;
  height: 1rem;
  margin-top: .18rem;
  flex: 0 0 auto;
  accent-color: var(--io-ink-2);
}

.io-legal-consent-check + .io-legal-consent-check {
  padding-top: .75rem;
  border-top: 1px solid rgba(49, 72, 63, .16);
}

/* Legal document */
.io-legal-page {
  color: var(--io-ink);
  background: var(--io-paper-2);
}

.io-legal-hero {
  color: #fff;
  background: var(--io-ink);
  border-bottom: 6px solid var(--io-gold);
}

.io-legal-hero h1 {
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.io-legal-hero p,
.io-legal-date {
  color: #d8e2de;
}

.io-legal-date {
  font-size: .82rem;
}

.io-legal-content {
  color: #485950;
}

.io-legal-content section {
  margin-bottom: 2.5rem;
}

.io-legal-content section h2 {
  color: var(--io-ink) !important;
  font-family: Cambria, Georgia, serif;
  font-weight: 600 !important;
  letter-spacing: -.015em;
  border-color: var(--io-rule) !important;
}

.io-legal-content a {
  color: #205a43;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.io-legal-intro,
.io-legal-notice,
.io-legal-contact {
  padding: 1rem 1.15rem;
  border: 1px solid var(--io-rule);
  border-radius: 12px;
}

.io-legal-intro {
  margin-bottom: 2.5rem;
  color: #584827;
  background: #fbf4df;
  border-color: #ddc991;
}

.io-legal-part {
  margin: 3.7rem 0 2rem;
  color: var(--io-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.025em;
}

.io-legal-notice {
  color: #3f4f47;
  background: var(--io-paper);
}

.io-legal-contact {
  margin-top: 3rem;
  color: #d8e2de;
  background: var(--io-ink);
  border-color: var(--io-ink);
}

.io-legal-contact a {
  color: #f1d68e;
}

.io-unit-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.io-unit-card {
  grid-column: span 5;
  position: relative;
  background: var(--io-paper-3) !important;
  border-color: var(--io-rule) !important;
  box-shadow: var(--io-panel-depth);
}

.io-unit-card:first-child {
  grid-column: span 7;
}

.io-unit-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 34px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(225deg, #e2d8c6 49%, var(--io-paper-3) 50%);
  border-left: 1px solid var(--io-rule);
  border-bottom: 1px solid var(--io-rule);
}

.io-unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(25, 54, 45, .13);
}

.io-add-unit {
  grid-column: span 5;
  min-height: 260px;
  color: #68776f !important;
  border-color: #bfb5a4 !important;
  background: rgba(255, 253, 248, .45);
}

.io-add-unit:hover {
  color: var(--io-ink-2) !important;
  border-color: var(--io-ink-2) !important;
  background: rgba(255, 253, 248, .85);
}

/* Upload becomes a working desk: sequence at left, active sheet at right. */
.io-upload-main > div {
  max-width: 1180px !important;
  display: grid;
  grid-template-columns: minmax(210px, 3fr) minmax(0, 9fr);
  align-items: start;
  gap: 2rem;
}

.io-upload-progress {
  position: sticky;
  top: 96px;
  padding: 1.5rem;
  background: var(--io-ink);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(20, 59, 50, .14);
}

.io-upload-progress > div:first-child span {
  color: #f6f1e8 !important;
}

.io-upload-progress .text-gray-500 {
  color: #b8cbc2 !important;
}

.io-upload-progress .bg-gray-200 {
  background-color: rgba(255,255,255,.15) !important;
}

.io-upload-sheet {
  min-width: 0;
}

.io-upload-sheet[data-slot="card"],
.io-upload-sheet [data-slot="card"] {
  background: var(--io-paper-3);
  border-color: var(--io-rule);
  border-radius: 14px;
  box-shadow: var(--io-depth);
}

.io-upload-sheet [class*="border-dashed"] {
  background: #faf8f2;
}

.io-upload-sheet [class*="justify-between"] {
  flex-wrap: wrap;
  gap: .75rem;
}

.io-upload-sheet button {
  min-height: 44px;
}

/* Quality dashboard is one decision surface, not a loose stack of cards. */
.io-quality-summary {
  background: var(--io-paper-3) !important;
  border: 1px solid var(--io-rule);
  border-radius: 14px !important;
  box-shadow: var(--io-panel-depth);
}

.io-quality-alert {
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(25, 54, 45, .06);
}

.io-quality-grid {
  grid-template-columns: 1fr !important;
  counter-reset: quality-ledger;
}

.io-quality-card {
  grid-column: 1;
  position: relative;
  counter-increment: quality-ledger;
  background: var(--io-paper-3) !important;
  border: 1px solid var(--io-rule);
  border-radius: 10px !important;
  box-shadow: 0 7px 16px rgba(25, 54, 45, .055);
}

.io-quality-card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 24px rgba(25, 54, 45, .09);
}

.io-quality-card:focus-visible {
  outline: 3px solid var(--io-gold);
  outline-offset: 3px;
}

.io-quality-card > div:first-child {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px !important;
  height: auto !important;
}

.io-quality-card > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(230px, 1.35fr) minmax(250px, .9fr) minmax(280px, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding-left: 2rem !important;
}

.io-quality-card > div:nth-child(2)::before {
  content: "0" counter(quality-ledger);
  position: absolute;
  left: .85rem;
  top: .8rem;
  color: #8a968f;
  font-family: Cambria, Georgia, serif;
  font-size: .72rem;
}

.io-quality-card > div:nth-child(2) > div:first-child,
.io-quality-card > div:nth-child(2) > div:nth-child(2) {
  margin-bottom: 0 !important;
}

.io-quality-card > div:nth-child(2) > div:first-child > :last-child {
  display: none;
}

.io-quality-card > div:nth-child(2) > div:last-child {
  margin-top: 0 !important;
  padding: 0 0 0 1.5rem !important;
  border-top: 0 !important;
  border-left: 1px solid var(--io-rule);
}

/* Monthly history: explicit archived state and charts that stay legible with
   only two competencies as well as a longer series. */
.io-archive-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .5rem .75rem;
  color: var(--io-muted);
  background: #f6f1e8;
  border: 1px solid var(--io-rule);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 650;
}

.io-history-card {
  background: var(--io-paper-3) !important;
  border-color: var(--io-rule) !important;
  border-radius: 14px !important;
  box-shadow: var(--io-panel-depth) !important;
}

.io-history-head {
  border-color: var(--io-rule) !important;
  background: #faf7ef;
}

.io-history-head h2 {
  color: var(--io-ink) !important;
  font-family: Cambria, Georgia, serif;
  font-size: 1rem !important;
}

.io-history-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.io-history-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .3rem .75rem;
  min-height: 92px;
  padding: .9rem 1rem;
  background: #faf8f2;
  border: 1px solid var(--io-rule);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.io-history-kpi::before {
  content: "";
  position: absolute;
  top: .9rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--io-kpi-color);
}

.io-history-kpi > span {
  grid-column: 1 / -1;
  padding-right: 1rem;
  color: var(--io-muted);
  font-size: .71rem;
  font-weight: 650;
}

.io-history-kpi > strong {
  color: var(--io-ink);
  font-family: Cambria, Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.io-history-kpi > small {
  color: var(--io-muted);
  font-size: .68rem;
  line-height: 1.3;
  text-align: right;
}

.io-history-kpi-blue { --io-kpi-color: #2563eb; }
.io-history-kpi-green { --io-kpi-color: #15966a; }
.io-history-kpi-gold { --io-kpi-color: var(--io-gold); }

.io-history-legend {
  padding: .7rem .85rem;
  background: #f8f4eb;
  border: 1px solid #e3dbcc;
  border-radius: 8px;
}

.io-history-chart {
  height: 210px !important;
  margin-bottom: 1rem;
  padding-top: 1.65rem;
  border-bottom: 1px solid var(--io-rule);
}

.io-history-column {
  color: var(--io-muted);
  opacity: .72;
  border-radius: 8px 8px 0 0;
}

.io-history-column:hover,
.io-history-column:focus-visible,
.io-history-column.is-selected {
  opacity: 1;
  background: rgba(198, 154, 56, .08);
}

.io-history-bars {
  max-width: 220px;
  padding-inline: .35rem;
}

.io-history-bar {
  position: relative;
  min-width: 18px;
  max-width: 56px;
  border-radius: 5px 5px 1px 1px !important;
  box-shadow: inset 0 0 0 1px rgba(20, 59, 50, .08);
}

.io-history-bar > span {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  translate: -50% 0;
  color: var(--io-ink);
  font-size: .67rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.io-history-quality-trend {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  background: #f8f4eb;
  border: 1px solid #e3dbcc;
  border-radius: 10px;
}

.io-history-quality-copy {
  align-self: center;
}

.io-history-quality-copy h3 {
  margin-bottom: .35rem;
  color: var(--io-ink);
  font-family: Cambria, Georgia, serif;
  font-size: 1rem;
  font-weight: 650;
}

.io-history-quality-copy p {
  max-width: 34ch;
  color: var(--io-muted);
  font-size: .72rem;
  line-height: 1.55;
}

.io-history-quality-bars {
  display: flex;
  align-items: stretch;
  gap: .75rem;
  min-height: 150px;
  padding: 1.35rem .5rem 0;
  border-bottom: 1px solid #cfc6b6;
  overflow-x: auto;
}

.io-history-quality-column {
  display: grid;
  grid-template-rows: 1rem 1fr auto;
  justify-items: center;
  align-items: end;
  flex: 1 0 62px;
  max-width: 120px;
  min-height: 126px;
  color: var(--io-muted);
  opacity: .72;
}

.io-history-quality-column:hover,
.io-history-quality-column:focus-visible,
.io-history-quality-column.is-selected {
  opacity: 1;
}

.io-history-quality-column strong {
  color: var(--io-ink);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.io-history-quality-column > span {
  width: min(34px, 62%);
  min-height: 4px;
  background: var(--io-gold);
  border-radius: 5px 5px 1px 1px;
  box-shadow: inset 0 0 0 1px rgba(91, 62, 11, .12);
}

.io-history-quality-column small {
  margin-top: .45rem;
  color: inherit;
  font-size: .66rem;
  font-weight: 650;
  white-space: nowrap;
}

.io-history-body table {
  font-variant-numeric: tabular-nums;
}

/* Demonstration player */
.io-tour-player {
  border: 1px solid #c9c0b0;
  box-shadow: var(--io-depth);
}

.io-tour-player > div:first-child {
  background: var(--io-paper) !important;
  border-color: var(--io-rule) !important;
}

.io-tour-player > div:nth-child(2) {
  background: var(--io-paper-2) !important;
}

.io-tour-player > div:last-child {
  background: var(--io-paper-3) !important;
  border-color: var(--io-rule) !important;
}

.io-tour-segment {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent !important;
}

.io-tour-segment::before {
  content: "";
  position: absolute;
  inset: calc(50% - 3px) 0 auto;
  height: 6px;
  border-radius: 999px;
  background: #dfe4e1;
}

.io-tour-segment > div {
  z-index: 1;
  height: 6px !important;
}

.io-tour-steps {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid var(--io-rule);
}

.io-tour-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  padding: 1.4rem .25rem;
  border-bottom: 1px solid var(--io-rule);
}

.io-tour-step-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--io-ink-2);
  background: var(--io-paper);
  border: 1px solid var(--io-rule);
  border-radius: 8px 8px 8px 2px;
}

.io-tour-step h3 {
  color: var(--io-ink) !important;
  font-family: Cambria, Georgia, serif;
  font-size: 1.08rem;
}

.io-tour-step p {
  max-width: 62ch;
  color: #53635c !important;
}

/* Quick guides: two task guides followed by one complete APS reference. */
.io-guide-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.io-guide-card {
  min-width: 0;
}

.io-guide-items--split {
  display: grid;
  gap: .75rem 1.5rem;
}

.io-guide-supporting {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.io-guide-supporting-label {
  margin-bottom: .625rem;
  color: #53635c !important;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.io-guide-supporting-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.io-guide-supporting-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .75rem;
  border: 1px solid #cddfd5;
  border-radius: .625rem;
  color: #285b47;
  background: #f3faf6;
  font-size: .8125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .io-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .io-guide-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
  }

  .io-guide-card--wide .io-guide-items {
    margin-top: 0;
  }

  .io-guide-items--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .io-hero {
    min-height: auto;
  }

  .io-hero-inner {
    min-height: auto;
  }

  .io-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .io-hero-visual {
    display: block !important;
    width: min(700px, calc(100% - 2rem));
    margin: 3rem auto 0;
  }

  .io-process-step:not(:last-child)::after {
    display: none;
  }

  .io-unit-card,
  .io-unit-card:first-child,
  .io-add-unit {
    grid-column: span 6;
  }

  .io-quality-card > div:nth-child(2) {
    grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr);
  }

  .io-quality-card > div:nth-child(2) > div:last-child {
    grid-column: 1 / -1;
    padding: 1rem 0 0 !important;
    border-top: 1px solid var(--io-rule) !important;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --io-page-gutter: 1.25rem;
  }

  .io-hero {
    background:
      linear-gradient(90deg, var(--io-gold) 0 5px, transparent 5px),
      var(--io-paper) !important;
  }

  .io-hero-title {
    max-width: 14ch;
    margin-inline: 0;
    font-size: clamp(2.65rem, 13vw, 4rem) !important;
  }

  .io-hero-copy > div[class*="flex-col"] {
    align-items: stretch;
  }

  .io-hero-primary,
  .io-hero-secondary {
    width: 100%;
  }

  .io-hero-proof {
    max-width: none !important;
  }

  .io-hero-visual {
    width: calc(100% - 1rem);
    margin-top: 2.25rem;
  }

  .io-paper-stack {
    transform: none;
  }

  .io-paper-stack::before,
  .io-paper-stack::after {
    display: none;
  }

  .io-dashboard-sheet {
    padding: 1rem !important;
  }

  .io-sheet-progress > div:nth-child(n+3) {
    display: none;
  }

  .io-hero-proof > div:nth-child(2)::after {
    display: none;
  }

  .io-feature-row:nth-child(odd) {
    border-right: 0;
  }

  .io-before-after {
    grid-template-columns: 1fr !important;
  }

  .io-process-step {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: start !important;
  }

  .io-process-step > div:first-child {
    grid-row: 1 / span 2;
    margin: 0 !important;
  }

  .io-process-step > :is(h3, p) {
    grid-column: 2;
  }

  .io-process-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .io-process-note {
    margin-top: 2.5rem;
    padding: 1.35rem 1.25rem;
  }

  .io-process-note p {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .io-process-note + div {
    margin-top: 1rem !important;
  }

  .io-video-callout {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem !important;
    padding: 1.5rem !important;
  }

  .io-video-callout > div:first-child {
    width: 48px !important;
    height: 48px !important;
  }

  .io-video-callout > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .io-final-cta > div.relative {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .io-final-cta > div.relative > div:first-child,
  .io-final-cta > div.relative > :is(h2, p, div:last-child) {
    grid-column: 1;
    grid-row: auto;
  }

  .io-final-cta > div.relative > div:first-child {
    margin-bottom: .5rem !important;
  }

  .io-upload-main > div {
    display: block;
  }

  .io-upload-progress {
    position: static;
    margin-bottom: 1.5rem;
  }

  .io-unit-grid,
  .io-quality-grid {
    grid-template-columns: 1fr !important;
  }

  .io-unit-card,
  .io-unit-card:first-child,
  .io-add-unit,
  .io-quality-card {
    grid-column: 1;
  }

  .io-quality-card > div:nth-child(2) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .io-quality-card > div:nth-child(2) > div:last-child {
    width: 100%;
  }

  .io-history-kpis {
    grid-template-columns: 1fr;
  }

  .io-history-kpi {
    min-height: 78px;
  }

  .io-history-quality-trend {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .io-history-quality-copy p {
    max-width: 65ch;
  }

  .io-history-chart {
    height: 196px !important;
  }

  .io-history-bar {
    min-width: 13px;
  }

  .io-tour-player > div:last-child {
    gap: .35rem !important;
    padding-inline: .5rem !important;
  }

  .io-tour-segment {
    min-width: 8px;
  }

  .io-tour-player input[type="range"] {
    display: none;
  }

  .io-tour-step {
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: .85rem;
  }

  .io-metric-item:nth-child(2) {
    border-right: 0;
  }

  .io-metric-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--io-rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #container [class*="animate-"],
  #container .io-paper-stack,
  #container .io-unit-card,
  #container .io-quality-card {
    animation: none !important;
    transform: none !important;
  }

  #container :is(.io-unit-card, .io-quality-card, .io-hero-primary, .io-hero-secondary, .io-tour-player *) {
    transition-property: color, background-color, border-color, opacity !important;
    transition-duration: .01ms !important;
  }
}

/* Volta da ficha de uma pessoa: a linha dela acende por um instante, para
   não ser preciso procurar de novo onde a leitura tinha parado. */
@keyframes io-pessoa-retorno {
  from {
    background-color: var(--io-gold-soft);
  }

  to {
    background-color: transparent;
  }
}

.io-pessoa-retorno {
  animation: io-pessoa-retorno 1.8s cubic-bezier(.16, 1, .3, 1);
}

/* Ações destrutivas do painel: o rótulo longo precisa continuar legível
   em telas estreitas e quando o botão estiver desabilitado. */
#container .io-admin-request-confirm {
  min-height: 44px;
  height: auto;
  padding-block: 10px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

#container .io-admin-request-confirm:disabled {
  background-color: var(--io-muted);
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .io-pessoa-retorno {
    background-color: var(--io-gold-soft);
    animation: none;
  }
}

/* Minha conta: vocabulário próprio (io-acc-*), porque o CSS utilitário do
   pacote é pré-compilado e não contém classes novas. */
#container .io-acc {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 16px 4.5rem;
  box-sizing: border-box;
}

#container .io-acc-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

#container .io-acc-head h1 {
  margin: 0;
  color: var(--io-ink);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1.08;
}

#container .io-acc-head p {
  max-width: 58ch;
  margin: .6rem 0 0;
  color: var(--io-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

#container .io-acc-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

#container .io-acc-main,
#container .io-acc-aside {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

@media (min-width: 960px) {
  #container .io-acc-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.75rem;
  }

  #container .io-acc-aside {
    position: sticky;
    top: 96px;
  }
}

#container .io-acc-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--io-rule);
  border-radius: 18px;
  background: var(--io-paper-3);
  box-shadow: var(--io-panel-depth);
}

#container .io-acc-card h2 {
  margin: 0;
  color: var(--io-ink);
  font-size: 1.3rem;
  line-height: 1.2;
}

#container .io-acc-eyebrow {
  margin: 0;
  color: var(--io-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#container .io-acc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}

#container .io-acc-count {
  color: var(--io-muted);
  font-size: .88rem;
}

#container .io-acc-lead {
  margin: .55rem 0 0;
  color: var(--io-muted);
  font-size: .92rem;
  line-height: 1.55;
}

#container .io-acc-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--io-ink-2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--io-gold);
  text-decoration-thickness: 2px;
}

#container .io-acc-lead .io-acc-link {
  margin-top: 0;
}

#container .io-acc-link:hover {
  color: var(--io-ink);
}

/* Assinatura */
#container .io-acc-plan {
  border-top: 4px solid var(--io-ink-2);
}

#container .io-acc-plan h2 {
  margin-top: .5rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

#container .io-acc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 1.25rem 0 0;
  overflow: hidden;
  border: 1px solid var(--io-rule);
  border-radius: 12px;
  background: var(--io-rule);
}

#container .io-acc-facts > div {
  padding: .85rem 1rem;
  background: var(--io-paper-2);
}

#container .io-acc-facts dt,
#container .io-acc-data dt {
  color: var(--io-muted);
  font-size: .78rem;
}

#container .io-acc-facts dd {
  margin: .2rem 0 0;
  color: var(--io-ink);
  font-size: 1.02rem;
  font-weight: 700;
}

#container .io-acc-note {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-left: 4px solid var(--io-gold);
  border-radius: 10px;
  background: var(--io-paper-2);
  color: var(--io-ink);
  font-size: .9rem;
  line-height: 1.55;
}

#container .io-acc-note[data-tone="info"] {
  border-left-color: #4f7ea3;
  background: #eef3f7;
}

#container .io-acc-note[data-tone="danger"] {
  border-left-color: var(--io-red);
  background: #fbf0ec;
}

#container .io-acc-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1.5rem;
}

#container .io-acc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
}

#container .io-acc-loading {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

#container .io-acc-loading span {
  height: 1.1rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #ece6da, #f7f3ea, #ece6da);
  background-size: 200% 100%;
  animation: io-acc-shimmer 1.4s ease-in-out infinite;
}

#container .io-acc-loading span:first-child {
  width: 55%;
  height: 1.8rem;
}

@keyframes io-acc-shimmer {
  to { background-position: -200% 0; }
}

/* Selos de situação */
#container .io-acc-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #ebe6dc;
  color: #4d5a54;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

#container .io-acc-pill::before {
  content: "";
  width: .5rem;
  height: .5rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

#container .io-acc-pill[data-tone="ok"] { background: #e2efe6; color: #1f5a45; }
#container .io-acc-pill[data-tone="warn"] { background: #f6ead0; color: #6f4c0f; }
#container .io-acc-pill[data-tone="info"] { background: #e2ebf3; color: #244d6b; }
#container .io-acc-pill[data-tone="danger"] { background: #f6e0da; color: #8a3522; }

/* Botões */
#container .io-acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--io-ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#container .io-acc-btn[data-variant="primary"] { background: var(--io-ink-2); color: #fff; }
#container .io-acc-btn[data-variant="primary"]:hover:not(:disabled) { background: var(--io-ink); }
#container .io-acc-btn[data-variant="secondary"] { border-color: #c9bfad; background: var(--io-paper-3); }
#container .io-acc-btn[data-variant="secondary"]:hover:not(:disabled) { border-color: #a99d86; background: var(--io-paper-2); }
#container .io-acc-btn[data-variant="quiet"] {
  min-height: 40px;
  padding-inline: .35rem;
  color: var(--io-muted);
  text-decoration: underline;
  text-decoration-color: #c9bfad;
  text-underline-offset: .25em;
}
#container .io-acc-btn[data-variant="quiet"]:hover:not(:disabled) { color: var(--io-ink); text-decoration-color: currentColor; }
#container .io-acc-btn[data-variant="danger"] { background: #9c3b27; color: #fff; }
#container .io-acc-btn[data-variant="danger"]:hover:not(:disabled) { background: #7f2f1f; }
#container .io-acc-btn[data-variant="danger-outline"] { margin-top: 1rem; border-color: #d9a697; background: #fff; color: #8a3522; }
#container .io-acc-btn[data-variant="danger-outline"]:hover:not(:disabled) { background: #f8e9e4; }
#container .io-acc-btn:disabled { cursor: not-allowed; opacity: .5; }

/* Dados de acesso */
#container .io-acc-data {
  display: grid;
  gap: .9rem;
  margin: 1rem 0 0;
}

#container .io-acc-data dd {
  margin: .15rem 0 0;
  color: var(--io-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Unidades */
#container .io-acc-units {
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--io-rule);
  list-style: none;
}

#container .io-acc-units li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--io-rule);
}

#container .io-acc-unit {
  display: grid;
  gap: .1rem;
  min-width: 0;
}

#container .io-acc-unit-name {
  color: var(--io-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

#container .io-acc-unit-meta {
  color: var(--io-muted);
  font-size: .8rem;
}

#container .io-acc-unit-delete[data-variant="quiet"]:hover:not(:disabled) {
  color: #8a3522;
}

/* Pedidos */
#container .io-acc-requests {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

#container .io-acc-request {
  padding: 1rem 1.1rem;
  border: 1px solid var(--io-rule);
  border-radius: 14px;
  background: var(--io-paper-2);
}

#container .io-acc-request[data-open="true"] {
  border-color: #b9ad97;
  background: #fff;
}

#container .io-acc-request-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem 1rem;
}

#container .io-acc-request h3 {
  margin: 0;
  color: var(--io-ink);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#container .io-acc-request-meta {
  margin: .2rem 0 0;
  color: var(--io-muted);
  font-size: .8rem;
}

#container .io-acc-request-reason {
  margin: .7rem 0 0;
  color: var(--io-ink);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#container .io-acc-request-reason span {
  color: var(--io-muted);
}

#container .io-acc-request .io-acc-btn[data-variant="quiet"] {
  margin-top: .35rem;
}

#container .io-acc-steps {
  display: flex;
  gap: .35rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

#container .io-acc-steps li {
  flex: 1;
  padding-top: .45rem;
  border-top: 3px solid var(--io-rule);
  color: var(--io-muted);
  font-size: .76rem;
}

#container .io-acc-steps li[data-state="done"] { border-top-color: var(--io-ink-2); color: var(--io-ink); }
#container .io-acc-steps li[data-state="current"] { border-top-color: var(--io-gold); color: var(--io-ink); font-weight: 700; }

#container .io-acc-reply {
  margin: .75rem 0 0;
  padding: .7rem .85rem;
  border: 1px solid var(--io-rule);
  border-radius: 10px;
  background: var(--io-paper-3);
  font-size: .88rem;
  line-height: 1.5;
}

/* Excluir conta */
#container .io-acc-danger {
  border-color: #e4c1b5;
  background: #fbf4f0;
  box-shadow: none;
}

#container .io-acc-danger h2 {
  color: #7f2f1f;
  font-size: 1.15rem;
}

/* Janela de pedido */
#container .io-acc-dialog {
  inset: 0;
  width: min(560px, calc(100vw - 32px));
  margin: auto;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--io-paper-3);
  color: var(--io-ink);
  box-shadow: var(--io-depth);
}

#container .io-acc-dialog::backdrop {
  background: rgba(11, 31, 26, .55);
}

#container .io-acc-dialog form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

#container .io-acc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#container .io-acc-dialog h2 {
  margin: .3rem 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#container .io-acc-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--io-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

#container .io-acc-close:hover:not(:disabled) {
  background: var(--io-paper-2);
  color: var(--io-ink);
}

#container .io-acc-consequences {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: .9rem 1rem .9rem 2.1rem;
  border-radius: 12px;
  background: var(--io-paper-2);
  list-style: disc;
  font-size: .9rem;
  line-height: 1.5;
}

#container .io-acc-consequences[data-tone="danger"] {
  background: #fbf0ec;
  color: #4f1d12;
}

#container .io-acc-field {
  display: grid;
  gap: .4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#container .io-acc-field > label:not(.io-acc-choice),
#container .io-acc-field > legend {
  padding: 0;
  color: var(--io-ink);
  font-size: .92rem;
  font-weight: 700;
}

#container .io-acc-field > legend {
  margin-bottom: .4rem;
}

#container .io-acc-field small {
  color: #8a3522;
  font-size: .8rem;
}

#container .io-acc-choice {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .8rem;
  border: 1px solid var(--io-rule);
  border-radius: 10px;
  background: #fff;
  font-size: .92rem;
  cursor: pointer;
}

#container .io-acc-choice:has(input:checked) {
  border-color: var(--io-ink-2);
  background: #eef4ef;
}

#container .io-acc-choice input {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: 0;
  accent-color: var(--io-ink-2);
}

#container .io-acc-input {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .8rem;
  border: 1px solid #bfb4a0;
  border-radius: 10px;
  background: #fff;
  color: var(--io-ink);
  font: inherit;
  font-size: 1rem;
}

#container textarea.io-acc-input {
  min-height: 84px;
  resize: vertical;
}

#container .io-acc-input:focus {
  border-color: var(--io-ink-2);
}

#container .io-acc-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #fbf0ec;
  color: #4f1d12;
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}

#container .io-acc-check input {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: .2rem 0 0;
  accent-color: #9c3b27;
}

#container .io-acc-dialog-foot {
  margin: 0;
  color: var(--io-muted);
  font-size: .82rem;
}

#container .io-acc-dialog-actions {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: .75rem;
}

@media (max-width: 560px) {
  #container .io-acc-dialog-actions .io-acc-btn {
    flex: 1 1 100%;
  }

  #container .io-acc-units li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #container .io-acc-loading span {
    animation: none;
  }
}

/* Administração: fila de pedidos das contas (io-adm-*). */
#container .io-adm-queue {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--io-rule);
  border-top: 4px solid var(--io-gold);
  border-radius: 18px;
  background: var(--io-paper-3);
  box-shadow: var(--io-panel-depth);
}

#container .io-adm-queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#container .io-adm-queue-head h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--io-ink);
  font-size: 1.35rem;
}

#container .io-adm-queue-head p {
  max-width: 60ch;
  margin: .35rem 0 0;
  color: var(--io-muted);
  font-size: .9rem;
  line-height: 1.5;
}

#container .io-adm-badge {
  display: inline-grid;
  min-width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  padding: 0 .45rem;
  border-radius: 999px;
  background: var(--io-gold);
  color: #2b2208;
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 0;
}

#container .io-adm-alert {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--io-red);
  border-radius: 10px;
  background: #fbf0ec;
  color: #5e2618;
  font-size: .9rem;
}

#container .io-adm-empty {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border-radius: 12px;
  background: var(--io-paper-2);
  color: var(--io-muted);
  font-size: .92rem;
}

#container .io-adm-requests {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

#container .io-adm-request {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--io-rule);
  border-left: 4px solid #4f7ea3;
  border-radius: 14px;
  background: #fff;
}

#container .io-adm-request[data-kind="delete_account"],
#container .io-adm-request[data-kind="delete_unit"] {
  border-left-color: var(--io-red);
}

#container .io-adm-request-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem 1rem;
}

#container .io-adm-request-who {
  min-width: 0;
}

#container .io-adm-kind {
  margin: 0;
  color: var(--io-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#container .io-adm-request h3 {
  margin: .2rem 0 0;
  color: var(--io-ink);
  font-size: 1.08rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#container .io-adm-sub {
  margin: .15rem 0 0;
  color: var(--io-muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}

#container .io-adm-request-meta {
  display: grid;
  justify-items: end;
  gap: .3rem;
  color: var(--io-muted);
  font-size: .8rem;
}

#container .io-adm-status {
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #f6ead0;
  color: #6f4c0f;
  font-size: .76rem;
  font-weight: 700;
}

#container .io-adm-status[data-status="in_review"],
#container .io-adm-status[data-status="approved"] {
  background: #e2ebf3;
  color: #244d6b;
}

#container .io-adm-reason {
  margin: .9rem 0 0;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: var(--io-paper-2);
  color: var(--io-ink);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#container .io-adm-reason span {
  display: block;
  margin-bottom: .15rem;
  color: var(--io-muted);
  font-size: .75rem;
  font-weight: 700;
}

#container .io-adm-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

#container .io-adm-steps li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem .35rem .4rem;
  border: 1px solid var(--io-rule);
  border-radius: 999px;
  background: var(--io-paper-3);
  color: var(--io-muted);
  font-size: .8rem;
}

#container .io-adm-steps li span {
  display: inline-grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border-radius: 50%;
  background: #e8e2d6;
  font-size: .72rem;
  font-weight: 800;
}

#container .io-adm-steps li[data-state="done"] { color: var(--io-ink); }
#container .io-adm-steps li[data-state="done"] span { background: var(--io-ink-2); color: #fff; }
#container .io-adm-steps li[data-state="current"] { border-color: var(--io-gold); background: #fbf5e6; color: var(--io-ink); font-weight: 700; }
#container .io-adm-steps li[data-state="current"] span { background: var(--io-gold); color: #2b2208; }

#container .io-adm-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: .9rem 0 0;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #f6ead0;
  color: #4a3208;
  font-size: .88rem;
  line-height: 1.5;
}

#container .io-adm-block p {
  margin: 0;
  min-width: 0;
  flex: 1 1 260px;
}

#container .io-adm-link {
  padding: .35rem 0;
  border: 0;
  background: none;
  color: var(--io-ink-2);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--io-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  cursor: pointer;
}

#container .io-adm-field {
  display: grid;
  gap: .35rem;
  margin: 1rem 0 0;
}

#container .io-adm-field label {
  color: var(--io-ink);
  font-size: .85rem;
  font-weight: 700;
}

#container .io-adm-input {
  width: 100%;
  box-sizing: border-box;
  padding: .6rem .75rem;
  border: 1px solid #bfb4a0;
  border-radius: 10px;
  background: #fff;
  color: var(--io-ink);
  font: inherit;
  font-size: .95rem;
  resize: vertical;
}

#container .io-adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .9rem 0 0;
}

#container .io-adm-reject {
  border-color: #e4c1b5;
  color: #8a3522;
}

#container .io-adm-confirm {
  margin: .9rem 0 0;
  padding: .9rem 1rem;
  border: 1px solid #e4b3a4;
  border-radius: 12px;
  background: #fbf0ec;
  color: #4f1d12;
  font-size: .9rem;
  line-height: 1.5;
}

#container .io-adm-confirm p {
  margin: 0;
}

#container .io-adm-confirm .io-adm-actions {
  margin-top: .75rem;
}

@media (max-width: 560px) {
  #container .io-adm-request-meta {
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
  }
}

/* Utilitários usados no pacote mas ausentes do CSS pré-compilado (o Tailwind não
   é recompilado a cada edição). Ficam fora de @layer para valerem sobre ele. */
.space-y-8 > :not(:last-child) { margin-bottom: 2rem; }
.divide-gray-100 > :not(:last-child) { border-color: #f3f4f6; }
.break-all { word-break: break-all; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.min-h-8 { min-height: 2rem; }
.h-56 { height: 14rem; }
.w-56 { width: 14rem; }
.max-h-\[92vh\] { max-height: 92vh; }
.min-w-\[680px\] { min-width: 680px; }
.z-\[60\] { z-index: 60; }
.tracking-\[0\.35em\] { letter-spacing: .35em; }
.bg-black\/60 { background-color: rgb(0 0 0 / .6); }
.bg-\[\#f5faf6\] { background-color: #f5faf6; }
.bg-sky-50 { background-color: #f0f9ff; }
.bg-sky-100 { background-color: #e0f2fe; }
.bg-rose-50 { background-color: #fff1f2; }
.border-sky-100 { border-color: #e0f2fe; }
.border-sky-200 { border-color: #bae6fd; }
.border-rose-300 { border-color: #fda4af; }
.text-sky-600 { color: #0284c7; }
.text-sky-700 { color: #0369a1; }
.text-sky-800 { color: #075985; }
.text-sky-900 { color: #0c4a6e; }
.text-rose-800 { color: #9f1239; }
.text-rose-950 { color: #4c0519; }
.text-amber-950 { color: #451a03; }
.text-emerald-800 { color: #065f46; }
.text-emerald-950 { color: #022c22; }
.text-red-800 { color: #991b1b; }
.text-red-950 { color: #450a0a; }
.hover\:bg-\[\#2d6a4f\]\/5:hover { background-color: rgb(45 106 79 / .05); }
.hover\:bg-\[\#2d6a4f\]\/10:hover { background-color: rgb(45 106 79 / .1); }
.hover\:bg-\[\#e4f5ea\]:hover { background-color: #e4f5ea; }
.hover\:bg-\[\#e8f3eb\]:hover { background-color: #e8f3eb; }
.hover\:bg-sky-50\/40:hover { background-color: rgb(240 249 255 / .4); }
.focus\:border-\[\#2d6a4f\]:focus { border-color: #2d6a4f; }
.focus\:ring-\[\#2d6a4f\]\/30:focus { --tw-ring-color: rgb(45 106 79 / .3); }
.disabled\:opacity-60:disabled { opacity: .6; }
@media (min-width: 40rem) {
  .sm\:justify-between { justify-content: space-between; }
  .sm\:h-14 { height: 3.5rem; }
  .sm\:h-20 { height: 5rem; }
}

/* Administração: limites de uso atingidos. */
#container .io-adm-limits {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--io-rule);
  border-radius: 18px;
  background: var(--io-paper-3);
  box-shadow: var(--io-panel-depth);
}

#container .io-adm-limits-table {
  margin: 1.1rem 0 0;
  overflow-x: auto;
}

#container .io-adm-limits table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}

#container .io-adm-limits th {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--io-rule);
  color: var(--io-muted);
  font-size: .75rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#container .io-adm-limits td {
  padding: .7rem .6rem;
  border-bottom: 1px solid #ece6da;
  color: var(--io-ink);
  vertical-align: top;
}

#container .io-adm-limits td strong,
#container .io-adm-limits td span {
  display: block;
}

#container .io-adm-limits td span {
  margin-top: .15rem;
  color: var(--io-muted);
  font-size: .8rem;
}

/* Aviso de carência no topo das páginas do painel. */
#container .io-grace-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  padding: .7rem 16px;
  background: #fbf0ec;
  border-bottom: 1px solid #e4c1b5;
  color: #4f1d12;
  font-size: .9rem;
  line-height: 1.45;
  text-align: center;
}

#container .io-grace-banner a {
  color: #7f2f1f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Âncoras da página inicial (/#planos, /#como-funciona): o cabeçalho fixo tem
   cerca de 81px e não pode cobrir o início da seção. */
#container #planos,
#container #como-funciona {
  scroll-margin-top: 88px;
}

/* Pendências resolvidas pela equipe: azul, para não se confundir com o
   vermelho (pendente) nem com o verde (realizada) que vêm da planilha. */
.io-res-chip,
.io-res-chip-cor {
  align-items: center;
  gap: 2px;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  background: #f0f9ff;
  color: #0369a1;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: default;
}
.io-res-chip { display: inline-flex; }
.io-res-chip-lg { padding: 4px 8px; font-size: 14px; line-height: 20px; }
.io-res-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 2px;
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.io-res-link:hover { color: #075985; }
.io-res-botao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
}
.io-res-botao:hover { background: #e0f2fe; }
.io-res-botao-sec { border-color: #d1d5db; background: #fff; color: #4b5563; }
.io-res-botao-sec:hover { background: #f9fafb; }
.io-res-link:disabled,
.io-res-botao:disabled { opacity: .55; cursor: wait; }
.io-res-link:focus-visible,
.io-res-botao:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.io-res-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.io-res-selo {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.io-res-cabecalho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.io-res-nota {
  margin: 12px 16px;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0c4a6e;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .io-res-nota { margin: 0 0 12px; }
}
.io-res-aviso {
  margin: 0 16px 8px;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0c4a6e;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
}

/* Marcada como resolvida numa competência anterior e ainda pendente na
   planilha nova: amarelo de "aguardando", entre o vermelho e o azul. */
.io-res-chip-ant,
.io-res-chip-ant-cor {
  align-items: center;
  gap: 2px;
  border: 1px dashed #f59e0b;
  border-radius: 4px;
  background: #fffbeb;
  color: #b45309;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: default;
}
.io-res-chip-ant { display: inline-flex; }
.io-res-selo-ant { background: #fef3c7; color: #92400e; }
.io-res-carry {
  margin: 0 16px 8px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.io-res-carry p { margin: 0 0 8px; }
.io-res-carry-acoes,
.io-res-card-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.io-res-card {
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
  padding: 16px 20px;
  color: #78350f;
}
.io-res-card h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #78350f; }
.io-res-card p { margin: 0; font-size: 13px; line-height: 1.5; color: #92400e; }
.io-res-card-lista { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.io-res-card-lista li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  border-bottom: 1px dashed #fde68a;
  padding-bottom: 6px;
  font-size: 13px;
  color: #374151;
}
.io-res-card-acoes span { font-size: 12px; color: #92400e; }

/* Listas de pessoas (indicador e CVAT) no celular: a tabela passava da
   largura do cartão e o botão "Ver" ficava cortado. Menos espaço lateral nas
   células e, se ainda sobrar tabela para rolar, a coluna do botão fica presa
   à direita. */
@media (max-width: 640px) {
  #container .io-tabela-pessoas th,
  #container .io-tabela-pessoas td {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  #container .io-tabela-pessoas th:last-child,
  #container .io-tabela-pessoas td:last-child:not([colspan]) {
    position: sticky;
    right: 0;
    background: var(--io-paper-3);
    box-shadow: -8px 0 8px -8px rgba(25, 54, 45, .25);
  }

  #container .io-tabela-pessoas th:last-child {
    background: inherit;
  }
}
