.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field {
  min-width: 220px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}

.field::placeholder {
  color: #8a95a3;
}

.profile-edit {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-edit__header {
  margin-bottom: 0;
}

.profile-edit__intro {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.profile-edit__form {
  display: grid;
  gap: 18px;
}

.profile-edit__section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-edit__section legend {
  padding: 0 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
}

.profile-edit__field {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
}

.profile-edit__field--wide {
  grid-column: 1 / -1;
}

.profile-edit__field .field {
  width: 100%;
}

.profile-edit__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

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

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

.help-form {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
}

.help-form__textarea {
  min-height: 132px;
  padding-top: 12px;
  resize: vertical;
}

.help-form__audio {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 14px;
}

.help-form__audio legend {
  padding: 0 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
}

.help-form__audio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.help-form__button {
  min-height: 52px;
}

.help-form__file {
  display: none;
}

.help-form__file-status {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

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

.profile-setup__header {
  display: grid;
  gap: 8px;
}

.profile-setup__header h2 {
  margin: 0;
}

.profile-setup__header p {
  margin: 0;
  color: var(--color-text-muted);
}

.profile-setup__progress {
  width: min(520px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #edf4ea;
  overflow: hidden;
}

.profile-setup__progress span {
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
  display: block;
}

.profile-setup__body {
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
}

.profile-setup__step-heading {
  display: grid;
  gap: 8px;
}

.profile-setup__step-heading .material-icons {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #f1f7ef;
  color: var(--color-green);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.profile-setup__step-heading h3,
.profile-setup__chain-card h4 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
}

.profile-setup__step-heading p,
.profile-setup__chain-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.profile-setup__photo {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-setup__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.profile-setup__chain-card,
.profile-setup__summary {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.profile-setup__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-setup__chip input {
  position: absolute;
  opacity: 0;
}

.profile-setup__chip span {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.profile-setup__chip input:checked + span {
  border-color: var(--color-green);
  background: #e7f5df;
  color: var(--color-green-dark);
}

.profile-setup__document-options {
  display: grid;
  gap: 10px;
}

.profile-setup__document-option {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
}

.profile-setup__summary div {
  display: grid;
  gap: 4px;
}

.profile-setup__summary strong {
  color: var(--color-text);
}

.profile-setup__summary span {
  color: var(--color-text-muted);
}

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

.new-record__header {
  margin-bottom: 0;
}

.new-record__header p:not(.eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.reg-wizard {
  padding: 4px 0 8px;
}

.reg-wizard__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.reg-wizard__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.reg-wizard__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--color-blue);
  background: #fff;
  color: var(--color-blue);
  flex-shrink: 0;
}

.reg-wizard__circle .material-icons {
  font-size: 1.1rem;
}

.reg-wizard__step--done .reg-wizard__circle {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.reg-wizard__step--current .reg-wizard__circle {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

.reg-wizard__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--color-text-muted);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.reg-wizard__step--done .reg-wizard__label {
  color: var(--color-green);
}

.reg-wizard__step--current .reg-wizard__label {
  color: var(--color-blue);
}

.reg-wizard__connector {
  height: 2px;
  flex: 1 1 24px;
  min-width: 16px;
  background: var(--color-border);
  margin-top: 17px;
}

.reg-wizard__connector--done {
  background: var(--color-green);
}

.new-record__panel {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 16px;
}

.new-record__panel h3,
.new-record__panel h4 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
}

.new-record__panel p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.new-record__type-card,
.new-record__section-title,
.new-record__media-box,
.new-record__auto {
  padding: 16px;
  border-radius: 14px;
  background: #f8fbf7;
  display: grid;
  gap: 8px;
}

.new-record__type-card,
.new-record__section-title {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.new-record__type-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef7ed;
  color: var(--color-green);
  display: inline-grid;
  place-items: center;
  font-size: 1.45rem;
}

.new-record__type-card strong,
.new-record__type-card span,
.new-record__type-card small,
.new-record__auto span {
  display: block;
}

.new-record__voice-field {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
}

.new-record__quantity-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.new-record__voice-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.new-record__textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.new-record__options,
.new-record__media-grid,
.new-record__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.new-record__option {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.new-record__option .material-icons {
  color: var(--color-green);
  font-size: 1.1rem;
}

.new-record__option.is-selected {
  border-color: var(--color-green);
  background: var(--color-mint);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-green);
}

.icon-button.is-recording {
  background: var(--color-green);
  color: #fff;
}

.new-record__media-button {
  min-height: 48px;
}

.new-record__file-input {
  display: none;
}

.new-record__media-status {
  font-size: 0.9rem;
  margin-top: 10px;
}

.new-record__auto .material-icons,
.new-record__section-title .material-icons {
  color: var(--color-green);
}

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

.new-record__preview {
  min-height: 140px;
  overflow: hidden;
  border: 1px dashed var(--color-border);
  border-radius: 16px;
  background: #f8fbf7;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  text-align: center;
}

.new-record__preview img {
  width: 100%;
  max-height: 260px;
  border-radius: 14px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .reg-wizard__step {
    min-width: 48px;
    gap: 4px;
  }

  .reg-wizard__circle {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .reg-wizard__circle .material-icons {
    font-size: 0.95rem;
  }

  .reg-wizard__label {
    font-size: 0.64rem;
    max-width: 58px;
  }

  .reg-wizard__connector {
    min-width: 10px;
    margin-top: 13px;
  }
}

@media (max-width: 900px) {
  .profile-edit__section {
    grid-template-columns: 1fr;
  }

  .help-form__audio-actions {
    flex-direction: column;
  }

  .profile-setup__chains {
    grid-template-columns: 1fr;
  }

  .new-record__summary-grid,
  .new-record__quantity-grid,
  .new-record__type-card,
  .new-record__section-title {
    grid-template-columns: 1fr;
  }
}

/* ALTO (reauditoria externa, 21/07/2026, achado INFRA-21): style="" inline
   exigia 'unsafe-inline' em style-src na CSP. */
.u-textarea-resizable { resize: vertical; }
.u-field-note { display: block; opacity: 0.7; margin-top: 2px; }
