.hero-card {
  min-height: 256px;
  margin-bottom: 18px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(18, 44, 34, 0.78), rgba(18, 44, 34, 0.42) 34%, rgba(18, 44, 34, 0) 62%),
    url("../assets/images/image-dashboard.png") center right / cover no-repeat;
  box-shadow: 0 3px 10px var(--color-shadow);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Atendimento conversacional */
.support-widget-launcher {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 136, 0, 0.24);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.support-widget-launcher > .material-icons {
  font-size: 25px;
}

.support-widget-launcher:hover {
  transform: translateY(-2px);
}

.support-widget-launcher.is-hidden,
body.login-active .support-widget-launcher,
body.login-active .support-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.support-widget-launcher__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-green);
  box-shadow: 0 3px 10px rgba(20, 48, 43, 0.18);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.support-widget {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 9001;
  width: min(410px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 44px));
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(20, 48, 43, 0.25);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.support-widget.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.support-widget__header {
  min-height: 82px;
  padding: 18px 18px 16px 22px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fbf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-widget__header h2,
.support-widget__header span {
  display: block;
  margin: 0;
}

.support-widget__header h2 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.support-widget__eyebrow {
  color: var(--color-green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-widget__close,
.support-conversation__back,
.support-composer__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.support-widget__view {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.support-widget__list-head {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.support-widget__list-head strong,
.support-widget__list-head span {
  display: block;
}

.support-widget__list-head span {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.support-widget__new {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.support-widget__tickets {
  min-height: 0;
  padding: 0 12px 16px;
  overflow-y: auto;
}

.support-ticket-item {
  width: 100%;
  padding: 15px 10px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.support-ticket-item:hover {
  background: #f8fbf7;
}

.support-ticket-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf6ea;
  color: var(--color-green);
  display: grid;
  place-items: center;
}

.support-ticket-item__body {
  min-width: 0;
}

.support-ticket-item__body strong,
.support-ticket-item__body small,
.support-ticket-item__body span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-item__body small {
  margin: 4px 0;
  color: var(--color-green);
  font-weight: 700;
}

.support-ticket-item__body span {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.support-widget__empty {
  min-height: 220px;
  padding: 28px;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.support-widget__empty > .material-icons {
  font-size: 34px;
  color: var(--color-green);
}

.support-widget__loader {
  width: 26px;
  height: 26px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-green);
  border-radius: 50%;
  animation: support-spin 0.8s linear infinite;
}

@keyframes support-spin {
  to { transform: rotate(360deg); }
}

.support-conversation__top {
  min-height: 68px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-conversation__top strong,
.support-conversation__top span {
  display: block;
}

.support-conversation__top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-conversation__top span {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.support-conversation__messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 16px;
  overflow-y: auto;
  background: #f7faf5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-message {
  width: fit-content;
  max-width: 86%;
  padding: 11px 13px 9px;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(20, 48, 43, 0.06);
}

.support-message--user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: var(--color-green-dark);
  color: #fff;
}

.support-message--team {
  align-self: flex-start;
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 5px;
  background: #fff;
  color: var(--color-text);
}

.support-message__author {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.72;
}

.support-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.support-message__listen {
  min-height: 30px;
  margin-top: 9px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.78;
}

.support-message__listen .material-icons {
  font-size: 17px;
}

.support-message__listen.is-playing {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
  opacity: 1;
}

.support-message time {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  text-align: right;
  opacity: 0.66;
}

.support-message__media {
  width: 100%;
  max-height: 220px;
  margin-top: 8px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

a.support-message__media img {
  width: 100%;
  max-height: 220px;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.support-message__audio {
  width: min(280px, 100%);
  margin-top: 8px;
}

.support-message__file {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: underline;
}

.support-composer {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.support-composer textarea {
  width: 100%;
  min-height: 72px;
  max-height: 140px;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  outline: none;
  resize: vertical;
  color: var(--color-text);
}

.support-composer textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 136, 0, 0.08);
}

.support-composer__attachments {
  min-height: 16px;
  margin: 6px 2px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.support-composer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-composer__icon input {
  display: none;
}

.support-composer__icon.is-recording {
  background: #b42318;
  color: #fff;
}

.support-composer__icon.is-dictating {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.support-composer__send {
  min-height: 40px;
  margin-left: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: var(--color-green);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.support-composer__send:disabled {
  opacity: 0.5;
}

.support-composer__error {
  margin: 8px 2px 0;
  color: #b42318;
  font-size: 0.78rem;
}

.support-conversation__closed {
  padding: 16px;
  border-top: 1px solid var(--color-border);
  background: #f8fbf7;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  text-align: center;
}

.support-rating {
  margin-top: 10px;
}

.support-rating__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.support-rating__star {
  background: none;
  border: none;
  cursor: pointer;
  color: #c9b458;
  padding: 2px;
}

.support-rating__star .material-icons {
  font-size: 1.4rem;
}

.support-rating--done {
  color: #c9b458;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .support-widget-launcher {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    padding: 0;
  }

  .support-widget {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    transform: translateY(24px);
  }

  .support-widget.is-open {
    transform: translateY(0);
  }

  .support-widget__header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .support-message {
    max-width: 90%;
  }

  .support-composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

.hero-card__copy {
  width: min(34%, 360px);
  max-width: 360px;
  padding: 24px 32px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h1 {
  max-width: 420px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2.1rem + 0.9vw, 3rem);
  line-height: 1.14;
  font-weight: 700;
}

.hero-card__greeting {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.hero-card p:not(.eyebrow) {
  max-width: 360px;
  margin: 0;
  line-height: 1.4;
}

.hero-card__button {
  width: min(220px, 100%);
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
}

.content-card {
  width: 100%;
  min-width: 0;
  min-height: 320px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--color-surface);
}

.content-card--flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card--flow > * {
  min-width: 0;
}

.content-card__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.producer-profile__locale {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.producer-profile__locale .field-label {
  font-size: 0.78rem;
}

.content-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-family: var(--font-display);
}

.placeholder-page__body {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-text-muted);
  text-align: center;
}

.placeholder-page__icon {
  font-size: 64px;
  color: #9ec7a8;
}

.placeholder-page__body p {
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

.producer-profile {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.producer-profile__header {
  align-items: flex-start;
}

.producer-profile__intro {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.producer-profile__summary {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #f8fbf7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 18px;
}

.producer-profile__avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: #e7f5df;
  color: var(--color-green-dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.producer-profile__avatar .material-icons {
  font-size: 44px;
}

.producer-profile__completion {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.producer-profile__completion strong {
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.producer-profile__completion span {
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.producer-profile__completion div {
  height: 8px;
  border-radius: 999px;
  background: #edf4ea;
  overflow: hidden;
}

.producer-profile__completion i {
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
  display: block;
}

.producer-profile__status {
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f5df;
  color: var(--color-green-dark);
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.producer-profile__summary h3 {
  margin: 8px 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.producer-profile__summary p {
  margin: 0;
  color: var(--color-text-muted);
}

.producer-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.producer-profile__panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.producer-profile__panel--wide {
  grid-column: 1 / -1;
}

.producer-profile__panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.producer-profile__panel-title .material-icons {
  color: var(--color-green);
}

.producer-profile__panel-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.producer-profile__info-item {
  display: grid;
  gap: 4px;
}

.producer-profile__info-item span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.producer-profile__info-item strong {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.producer-profile__info-item.is-missing strong {
  color: #8a95a3;
  font-weight: 600;
}

.producer-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.producer-profile__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f7ef;
  color: var(--color-green-dark);
  font-size: 0.86rem;
  font-weight: 600;
}

.producer-profile__note {
  max-width: 720px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.producer-profile__verification {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legal-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-page__header {
  margin-bottom: 0;
}

.legal-page__intro {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.legal-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-page__column {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 16px;
  align-content: start;
}

.legal-page__column-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-section {
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 8px;
}

.legal-section h3 {
  margin: 0;
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: 1rem;
}

.legal-section p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.origin-records-page,
.record-detail,
.record-edit,
.record-labels {
  display: grid;
  gap: 18px;
}

.origin-records__toolbar,
.record-detail__actions,
.record-labels__actions,
.record-label-card__actions,
.origin-record-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.origin-record-card,
.record-label-card,
.record-detail__hero,
.record-detail__story,
.record-detail__section,
.record-edit {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
}

.origin-record-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.origin-record-card > *,
.record-label-card > *,
.record-detail > *,
.record-detail__hero > *,
.record-detail__story > *,
.record-detail__section > *,
.record-fact,
.record-fact *,
.record-timeline__item,
.record-timeline__item *,
.producer-profile__panel,
.producer-profile__panel *,
.metric-card,
.metric-card * {
  min-width: 0;
}

.origin-record-card__eyebrow {
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Alto (auditoria manual, 19/07/2026, achado "falta confirmação simples de
   'salvo no aparelho' versus 'enviado para a nuvem'"): antes o estado
   "sincronizado" não tinha nenhuma marcação visual (silêncio = sucesso,
   difícil de confiar), e "pendente" era só a palavra solta no texto, sem
   ícone nem cor. Badge dedicado, com ícone + texto + cor, para os dois
   estados. */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.sync-status .material-icons {
  font-size: 1rem;
}

.sync-status--synced {
  color: #2f6b2f;
  background: #e4f3e4;
}

.sync-status--pending {
  color: #8a5a00;
  background: #fdecc8;
}

/* ALTO (reauditoria externa, 20/07/2026, achado UX-10): registro em
   save_failed não tinha aparência própria -- caía no "senão" do badge
   antigo e mostrava "Enviado com sucesso", o oposto do que aconteceu. */
.sync-status--failed {
  color: #a14b42;
  background: #f7dedb;
}

.reports-page {
  display: grid;
  gap: 18px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-metric,
.report-chart {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-metric {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.report-metric .material-icons {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-green-soft);
  color: var(--color-green);
  font-size: 1.15rem;
}

.report-metric strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
}

.report-metric small {
  color: var(--color-text-muted);
  font-weight: 600;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-chart {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.report-chart__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-chart__header .material-icons {
  color: var(--color-green);
}

.report-chart h3 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.report-chart__bars {
  display: grid;
  gap: 14px;
}

.report-bar {
  display: grid;
  gap: 7px;
}

.report-bar__label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.report-bar__label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-bar__label strong {
  color: var(--color-text);
  white-space: nowrap;
}

.report-bar i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-green), #8fb077);
}

.origin-record-card h3,
.record-detail__hero h3,
.record-label-card h4,
.record-edit h3,
.record-detail__story h4,
.record-detail__section h4,
.record-labels__header h3 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
}

.origin-record-card p,
.record-detail__hero p,
.record-detail__story p,
.record-label-card p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
}

.origin-record-card h3,
.origin-record-card p,
.record-detail__hero h3,
.record-detail__hero p,
.record-detail__story h4,
.record-detail__story p,
.record-label-card h4,
.record-label-card p,
.record-label-card span,
.record-fact strong,
.record-timeline__item span,
.record-timeline__item small,
.producer-profile__info-item strong,
.producer-profile__tag,
.metric-card strong,
.metric-card span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.record-detail__hero {
  display: grid;
  gap: 16px;
}

.record-detail__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.record-detail__tabs span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f7ef;
  color: var(--color-green-dark);
  font-weight: 700;
}

.record-detail__grid,
.record-detail__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.record-fact {
  padding: 14px;
  border-radius: 12px;
  background: #f8fbf7;
  display: grid;
  gap: 5px;
}

.record-fact span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.record-fact strong {
  color: var(--color-text);
  line-height: 1.45;
}

.record-timeline {
  display: grid;
  gap: 10px;
}

.record-timeline__item {
  padding-left: 16px;
  border-left: 3px solid var(--color-green);
  display: grid;
  gap: 4px;
}

.record-timeline__item span,
.record-timeline__item small {
  color: var(--color-text-muted);
}

.record-edit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-edit h3,
.record-edit__textarea,
.record-labels__header {
  grid-column: 1 / -1;
}

.record-edit__textarea {
  min-height: 220px;
  padding-top: 12px;
  resize: vertical;
}

.record-labels__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.record-label-card {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.record-label-card__body {
  display: grid;
  grid-template-columns: minmax(150px, 170px) minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.record-label-card__qr {
  width: 170px;
  min-height: 170px;
  padding: 10px;
  border-radius: 16px;
  background: #f1f7ef;
  display: grid;
  place-items: center;
  color: var(--color-green-dark);
  text-align: center;
}

.record-label-card__qr img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: block;
}

.record-label-card__qr .material-icons {
  font-size: 44px;
}

.record-label-card h4,
.record-label-card p,
.record-label-card span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.record-label-card__info {
  min-width: 0;
  width: 100%;
}

.record-label-card h4 {
  margin: 0 0 8px;
}

.record-label-card p {
  margin: 0 0 6px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.record-label-card__actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.record-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.record-media-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fbf7;
  display: grid;
  gap: 8px;
}

.record-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.record-media-card .material-icons {
  width: 100%;
  min-height: 110px;
  border-radius: 10px;
  background: #fff;
  color: var(--color-green);
  display: grid;
  place-items: center;
  font-size: 40px;
}

.record-media-card strong,
.record-media-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.empty-state--compact {
  min-height: auto;
  padding: 12px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  text-align: left;
}

.about-page {
  display: grid;
  gap: 24px;
}

.about-page__header {
  margin-bottom: 0;
}

.about-page__intro {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.about-page__panel {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 16px;
  align-content: start;
}

.about-page__panel h3 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
}

.about-page__steps {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.about-page__deliveries {
  display: grid;
  gap: 10px;
}

.about-page__deliveries article {
  padding: 14px;
  border-radius: 12px;
  background: #f8fbf7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.about-page__deliveries .material-icons {
  color: var(--color-green);
}

.about-page__deliveries p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.profile-completion-card {
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(34, 77, 64, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-completion-card strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.profile-completion-card p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.profile-completion-card .button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.86rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
}

.info-card span {
  color: var(--color-text-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 77, 64, 0.08);
  display: grid;
  gap: 8px;
}

.metric-card__icon {
  color: var(--color-green);
}

.metric-card strong {
  font-size: 1.55rem;
  color: var(--color-text);
}

.metric-card span:last-child {
  color: var(--color-text-muted);
}

.stepper-card {
  display: grid;
  gap: 20px;
}

.step-list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
}

.step-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0;
  color: #4c6f67;
  font-size: 0.86rem;
  white-space: nowrap;
}

.step-list li:not(:last-child)::after {
  content: "";
  width: clamp(20px, 3vw, 38px);
  height: 1px;
  margin-left: 6px;
  background: #c9dfd5;
}

.step-list li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbe8dd;
  display: grid;
  place-items: center;
  color: #2f6f63;
  font-weight: 700;
}

.step-list li.is-active {
  color: #35685d;
}

.step-list li.is-active span {
  background: var(--color-green);
  color: #fff;
}

.content-action {
  margin-top: 18px;
}

.metrics-section {
  display: block;
}

.flow-section {
  min-width: 0;
  min-height: 300px;
}

.flow-section h2 {
  margin: 0 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.flow-section p {
  margin: 0 0 20px;
  color: var(--color-text);
}

.filter-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  max-width: 450px;
  min-height: 40px;
  margin-bottom: 24px;
  border: 1px solid #d5dce2;
  border-radius: 8px;
  overflow: hidden;
}

.filter-button,
.search-field {
  border: 0;
  background: #fff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filter-button {
  width: 130px;
  padding: 0 12px;
  border-right: 1px solid #d5dce2;
  cursor: pointer;
}

.search-field {
  flex: 1;
  min-width: 0;
  padding: 0 8px 0 18px;
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
}

/* Médio (auditoria manual, 19/07/2026, achado "foco de teclado
   inconsistente"): outline:0 acima removia o indicador padrão do
   navegador sem nenhum substituto -- navegar até este campo via Tab não
   mostrava foco nenhum. :focus-visible (só teclado/navegação, não clique
   de mouse) repõe um indicador visível. */
.search-field input:focus-visible {
  outline: 2px solid var(--color-blue, #044d7d);
  outline-offset: 2px;
  border-radius: 4px;
}

.search-field kbd {
  min-width: 22px;
  min-height: 20px;
  border: 0;
  border-radius: 5px;
  background: #f1f1f1;
  color: #9ca3af;
  display: grid;
  place-items: center;
  font: inherit;
}

.empty-state {
  min-height: 170px;
  padding-top: 12px;
  border-top: 1px solid #d9e1df;
  color: #7d8ca3;
  text-align: right;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-green);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 32px;
  background: rgba(0, 0, 0, 0.48);
  display: grid;
  place-items: center;
}

.custom-modal {
  width: min(1180px, 94vw);
  max-height: 86vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.custom-modal--label {
  width: min(560px, 94vw);
}

.custom-modal > p,
.custom-modal > .record-fact {
  margin-left: 32px;
  margin-right: 32px;
}

.custom-modal > .record-fact:last-child {
  margin-bottom: 32px;
}

.data-table-wrap {
  margin: 0 32px 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table thead th {
  background: #f4f8f3;
  color: var(--color-text);
  font-weight: 600;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.label-preview {
  margin: 0 32px 20px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #f8fbf7;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.label-preview img {
  width: 136px;
  height: 136px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.label-preview strong,
.label-preview span,
.label-preview small,
.label-preview p {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.label-preview strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.label-preview span,
.label-preview small,
.label-preview p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
}

.label-preview__actions {
  padding: 0 32px 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-modal__header {
  position: relative;
  padding: 28px 72px 16px 32px;
}

.custom-modal__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.custom-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #d93025;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.bi-modal-content {
  min-height: 520px;
  padding: 0 24px 24px;
}

.embed-box {
  min-height: 520px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5f6368;
  text-align: center;
}

.embed-title {
  color: #1f1f1f;
  font-weight: 600;
}

.embed-hint {
  font-size: 0.84rem;
}

.marketplace-hint {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  color: #5a6b63;
}

.marketplace-notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-primary, #008800);
  border-radius: 6px;
  background: #f1f7ef;
  color: #234b35;
  font-weight: 600;
}

.marketplace-section + .marketplace-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #dbe5d9;
}

.marketplace-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.marketplace-section__heading h2 {
  margin: 0;
  color: #004b50;
  font-size: 1.25rem;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.marketplace-card,
.marketplace-request {
  min-width: 0;
  border: 1px solid #d8e3d5;
  border-radius: 12px;
  background: #fff;
}

.marketplace-card {
  padding: 20px;
}

.marketplace-card__heading,
.marketplace-request {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.marketplace-card h3,
.marketplace-request h3 {
  margin: 4px 0;
  color: #004b50;
  overflow-wrap: anywhere;
}

.marketplace-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ec;
  color: #315a3b;
  font-size: 0.75rem;
  font-weight: 700;
}

.marketplace-status--available {
  background: #e6f5e4;
  color: #087421;
}

.field-notebook-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.field-notebook-status--pendente {
  background: #eef0f2;
  color: #4a5560;
}

.field-notebook-status--atrasada {
  background: #fbe7e7;
  color: #b3261e;
}

.field-notebook-status--concluida {
  background: #e6f5e4;
  color: #087421;
}

.marketplace-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.marketplace-facts div {
  min-width: 0;
}

.marketplace-facts dt {
  margin-bottom: 3px;
  color: #6c7b73;
  font-size: 0.75rem;
}

.marketplace-facts dd {
  margin: 0;
  color: #123d31;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.marketplace-card__note {
  margin: 12px 0;
  color: #52685c;
  overflow-wrap: anywhere;
}

.marketplace-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e9df;
}

.marketplace-form label {
  display: grid;
  gap: 6px;
  color: #264d3b;
  font-size: 0.8rem;
  font-weight: 600;
}

.marketplace-form__wide {
  grid-column: 1 / -1;
}

.marketplace-list {
  display: grid;
  gap: 12px;
}

.marketplace-request {
  padding: 18px 20px;
}

.marketplace-request p,
.marketplace-request small {
  display: block;
  margin: 4px 0 0;
  color: #52685c;
  overflow-wrap: anywhere;
}

.marketplace-request__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.marketplace-billing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #f1f7ef;
  color: #264d3b;
}

.marketplace-billing-summary strong,
.marketplace-charge-value {
  color: #004b50;
  font-size: 1.15rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-card {
    background:
      linear-gradient(180deg, rgba(18, 44, 34, 0.78) 0%, rgba(18, 44, 34, 0.46) 56%, rgba(18, 44, 34, 0.18) 100%),
      url("../assets/images/image-dashboard.png") center / cover no-repeat;
  }

  .hero-card__copy {
    width: 100%;
    max-width: 100%;
    padding: 28px 24px;
    gap: 12px;
    justify-content: flex-start;
  }

  .hero-card h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-card p:not(.eyebrow) {
    max-width: 320px;
  }

  .content-card__header,
  .info-grid,
  .metric-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .content-card {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    overflow-x: hidden;
  }

  .producer-profile__header,
  .producer-profile__summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .producer-profile__summary {
    grid-template-columns: 1fr;
  }

  .producer-profile__grid,
  .producer-profile__verification,
  .report-metrics,
  .report-grid,
  .legal-page__grid,
  .record-detail__grid,
  .record-detail__notes,
  .record-edit,
  .record-label-card,
  .about-page__grid {
    grid-template-columns: 1fr;
  }

  .marketplace-grid,
  .marketplace-facts,
  .marketplace-form {
    grid-template-columns: 1fr;
  }

  .marketplace-form__wide {
    grid-column: auto;
  }

  .marketplace-card__heading,
  .marketplace-request {
    flex-direction: column;
  }

  .marketplace-billing-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketplace-request__actions,
  .marketplace-request__actions .button {
    width: 100%;
  }

  .origin-record-card,
  .record-labels__header,
  .profile-completion-card {
    align-items: stretch;
    flex-direction: column;
  }

  .step-list {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .step-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .flow-section h2 {
    max-width: 100%;
    font-size: 1.55rem;
    overflow-wrap: anywhere;
  }

  .flow-section p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .filter-bar {
    max-width: 100%;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .custom-modal {
    max-height: 92vh;
  }

  .custom-modal__header {
    padding: 24px 56px 14px 22px;
  }

  .custom-modal > p,
  .custom-modal > .record-fact {
    margin-left: 22px;
    margin-right: 22px;
  }

  .data-table-wrap {
    margin-left: 16px;
    margin-right: 16px;
  }

  .record-label-card,
  .record-label-card__body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .record-label-card__qr {
    width: min(180px, 100%);
    justify-self: start;
  }

  .record-label-card__actions {
    justify-content: stretch;
  }

  .record-label-card__actions .button {
    width: 100%;
  }

  .bi-modal-content,
  .embed-box {
    min-height: 360px;
  }
}
