/* Apresentação clínica web compartilhada pelo usuário e pelo modo suporte.
   O suporte mantém suas permissões administrativas, sem trocar a experiência visual. */
#appScreen.normal-user-clean > .shell {
  grid-template-rows: max-content minmax(0, 1fr);
  align-content: start;
}

#appScreen.normal-user-clean .btn-blue,
#appScreen.normal-user-clean .btn-green,
#appScreen.normal-user-clean .history-tools .btn-green {
  border-color: transparent;
  background: linear-gradient(135deg, #078f86, #0bb39f);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 143, 134, .18);
}

#appScreen.normal-user-clean .btn-blue:not(:disabled):hover,
#appScreen.normal-user-clean .btn-green:not(:disabled):hover,
#appScreen.normal-user-clean .history-tools .btn-green:not(:disabled):hover {
  background: linear-gradient(135deg, #067b74, #099b8a);
}

#appScreen.normal-user-clean button:disabled {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: none !important;
}

#appScreen.normal-user-clean .btn-record,
#appScreen.normal-user-clean .btn-record-stop {
  background: #c62828;
  color: #fff;
}

#appScreen.normal-user-clean .btn-record:not(:disabled):hover,
#appScreen.normal-user-clean .btn-record-stop:not(:disabled):hover {
  background: #a91f1f;
}

#appScreen.normal-user-clean .app-topbar .top-actions {
  align-self: start;
  align-items: center;
  gap: 9px;
}

#appScreen.normal-user-clean .app-user-badge {
  min-width: 0;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#appScreen.normal-user-clean .app-topbar .app-exit-button {
  min-width: 74px;
  min-height: 42px;
  flex-direction: row;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cbd8de;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-navy);
  box-shadow: none;
}

#appScreen.normal-user-clean .app-exit-button svg {
  width: 17px;
  height: 17px;
}

#appScreen.normal-user-clean .recording-subtitle,
#appScreen.normal-user-clean .timer-wrap .dot,
#appScreen.normal-user-clean .recording-limit,
#appScreen.normal-user-clean #partSize,
#appScreen.normal-user-clean .recording-download-action,
#appScreen.normal-user-clean .app-usage-footer {
  display: none;
}

#appScreen.normal-user-clean .rec-row {
  align-items: center;
}

#appScreen.normal-user-clean .timer-wrap,
#appScreen.normal-user-clean .timer-info {
  display: block;
  min-width: 0;
}

#appScreen.normal-user-clean .timer {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.normal-listening-visual {
  display: none;
}

#appScreen.normal-user-clean .wave {
  min-height: 138px;
  height: auto;
  overflow: hidden;
  padding: 0 18px;
  background: #ecfaf9;
}

#appScreen.normal-user-clean .wave > .bar {
  display: none;
}

#appScreen.normal-user-clean .normal-listening-visual {
  width: min(100%, 650px);
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 38px);
}

#appScreen.normal-user-clean .normal-listening-visual img {
  align-self: center;
  width: auto;
  height: 136px;
  flex: 0 0 auto;
  object-fit: contain;
}

#appScreen.normal-user-clean .normal-listening-message {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .28em;
  color: var(--brand-navy);
  font-size: clamp(21px, 2.7vw, 31px);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#appScreen.normal-user-clean .normal-listening-brand {
  color: var(--brand-navy);
}

#appScreen.normal-user-clean .normal-listening-reactive {
  display: inline-flex;
  align-items: baseline;
  color: #0aa89b;
}

#appScreen.normal-user-clean [data-listening-letter] {
  display: inline-block;
  min-width: .04em;
  transform-origin: center;
  transition: transform 90ms ease-out;
  will-change: transform;
}

#appScreen.normal-user-clean .normal-listening-space {
  min-width: .28em;
}

#appScreen.normal-user-clean .normal-listening-visual.is-listening .normal-listening-reactive {
  text-shadow: 0 4px 14px rgba(10, 168, 155, .12);
}

@media (max-width: 700px) {
  #appScreen.normal-user-clean .wave {
    min-height: 108px;
    padding: 0 10px;
  }

  #appScreen.normal-user-clean .normal-listening-visual {
    min-height: 106px;
    gap: 12px;
  }

  #appScreen.normal-user-clean .normal-listening-visual img {
    height: 108px;
  }

  #appScreen.normal-user-clean .normal-listening-message {
    font-size: clamp(17px, 4.2vw, 22px);
  }
}

#appScreen.normal-user-clean .audio-parts {
  gap: 8px;
  max-width: 680px;
  margin: 14px auto 0;
}

#appScreen.normal-user-clean .audio-part.audio-part-receipt {
  padding: 10px 13px;
  border: 1px solid #d7e3e8;
  border-radius: 10px;
  background: #f8fbfc;
  box-shadow: none;
}

#appScreen.normal-user-clean .audio-part-receipt .audio-part-header {
  min-height: 24px;
  margin: 0;
  color: var(--brand-navy);
  font-size: 13px;
}

#appScreen.normal-user-clean .audio-part-save-state {
  color: #087f75;
  font-size: 12px;
  font-weight: 800;
}

.normal-manual-transcription {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #d7e3e8;
  border-radius: 12px;
  background: #f8fbfc;
  color: var(--brand-navy);
  font-weight: 800;
}

#appScreen.normal-user-clean .normal-manual-transcription:not([hidden]) {
  display: flex;
}

#appScreen.normal-user-clean .normal-manual-transcription button {
  min-height: 40px;
  padding: 9px 14px;
}

.normal-format-controls {
  display: none;
}

#appScreen.normal-user-clean .clinical-format-toolbar .support-format-control {
  display: none;
}

#appScreen.normal-user-clean .clinical-format-toolbar .normal-format-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

#appScreen.normal-user-clean .clinical-format-toolbar {
  width: max-content;
  max-width: 100%;
  gap: 3px;
  padding: 3px 4px;
  border-radius: 6px;
  background: #f3f4f6;
}

#appScreen.normal-user-clean .clinical-format-toolbar .normal-format-bold,
#appScreen.normal-user-clean .normal-format-color-trigger {
  min-width: 30px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-navy);
  cursor: pointer;
  box-shadow: none;
  font-size: 14px;
  line-height: 1;
}

#appScreen.normal-user-clean .normal-format-bold[aria-pressed="true"] {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: var(--brand-navy);
}

#appScreen.normal-user-clean .normal-format-bold:hover,
#appScreen.normal-user-clean .normal-format-color-trigger:hover {
  border-color: #d1d5db;
  background: #e5e7eb;
}

#appScreen.normal-user-clean .normal-format-color-menu {
  position: relative;
}

#appScreen.normal-user-clean .normal-format-color-trigger {
  position: relative;
  gap: 4px;
  padding-bottom: 7px;
  font-weight: 900;
}

#appScreen.normal-user-clean .normal-format-color-trigger::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 3px;
  left: 6px;
  height: 2px;
  border-radius: 1px;
  background: var(--current-text-color, #c51f1f);
}

#appScreen.normal-user-clean .normal-format-color-trigger svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

#appScreen.normal-user-clean .normal-color-palette {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  width: 150px;
  display: grid;
  grid-template-columns: repeat(5, 24px);
  gap: 4px;
  padding: 7px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 30, 47, .14);
}

#appScreen.normal-user-clean .normal-color-palette[hidden] {
  display: none;
}

#appScreen.normal-user-clean .normal-color-swatch {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

#appScreen.normal-user-clean .normal-color-swatch::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(14, 30, 47, .2);
  border-radius: 2px;
  background: var(--swatch-color);
}

#appScreen.normal-user-clean .normal-color-swatch:hover,
#appScreen.normal-user-clean .normal-color-swatch[aria-checked="true"] {
  border-color: #64748b;
  background: #f1f5f9;
}

@media (max-width: 980px) {
  #appScreen.normal-user-clean .app-topbar .top-actions {
    align-self: center;
  }

  #appScreen.normal-user-clean .normal-manual-transcription:not([hidden]) {
    align-items: stretch;
    flex-direction: column;
  }
}
