/* Audio denoise — the styles of the browser tool.
 *
 * The colours and the rhythm come from the stylesheet of the site; only the
 * parts that belong to the tool live here.
 */

.adn {
  margin-top: var(--space-6);
}

.adn__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .adn__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.adn__panel {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e3e8e6);
  border-radius: var(--radius-lg, 16px);
  padding: var(--space-5);
}

.adn__panel-title {
  font-size: 1.05rem;
  margin: 0 0 var(--space-4);
}

.adn__file {
  font-weight: 600;
  margin: var(--space-4) 0 0;
  overflow-wrap: anywhere;
}

.adn__file-meta {
  color: var(--muted, #5c6b68);
  font-size: 0.9rem;
  margin: var(--space-1) 0 0;
}

.adn__strength {
  margin: var(--space-5) 0;
}

.adn__strength label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.adn__strength output {
  color: var(--muted, #5c6b68);
  font-variant-numeric: tabular-nums;
}

.adn__strength input[type="range"] {
  width: 100%;
  accent-color: var(--brand, #0b6b5f);
}

.adn__status {
  color: var(--muted, #5c6b68);
  font-size: 0.9rem;
  margin: var(--space-4) 0 0;
  min-height: 1.4em;
}

.adn__status--ok {
  color: var(--brand, #0b6b5f);
}

.adn__status--error {
  color: #b42318;
}

.adn__meter {
  background: var(--border, #e3e8e6);
  border-radius: 999px;
  height: 6px;
  margin-top: var(--space-3);
  overflow: hidden;
}

.adn__meter-bar {
  background: var(--brand, #0b6b5f);
  height: 100%;
  width: 0;
  transition: width 60ms linear;
}

.adn__facts {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.adn__facts > div {
  border-bottom: 1px solid var(--border, #e3e8e6);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
}

.adn__facts dt {
  color: var(--muted, #5c6b68);
  font-size: 0.9rem;
  margin: 0;
}

.adn__facts dd {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

.adn__note {
  background: #f4f7f6;
  border-left: 3px solid var(--brand, #0b6b5f);
  border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
  color: var(--ink, #16211f);
  font-size: 0.92rem;
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
}

.adn__honest {
  background: #fff8ec;
  border-left: 3px solid #b7791f;
  border-radius: 0 var(--radius, 10px) var(--radius, 10px) 0;
  font-size: 0.92rem;
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
}

.adn__honest strong {
  display: block;
  margin-bottom: var(--space-1);
}

.adn__table {
  width: 100%;
}

.dropzone.is-over {
  border-color: var(--brand, #0b6b5f);
  background: #f1f7f5;
}

.btn.is-playing {
  background: var(--brand, #0b6b5f);
  border-color: var(--brand, #0b6b5f);
  color: #fff;
}
