/* Audio File Size Calculator — content styles.
   Prefix: --as-  /  .as-

   Reference point: a warmer, studio-adjacent neutral than
   `file-transfer-and-render-time-calculator`'s cooler grey — the
   second `files-media`-cluster tool this loop, deliberately
   differentiated so the cluster doesn't read as one repeated palette.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --as-surface: #ffffff;
  --as-panel:   #f5f4f1;
  --as-line:    #e1ddd4;
  --as-text:    #1a1712;
  --as-muted:   #67604f;
  --as-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.as-wrap {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.as-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--as-line);
  border-radius: 2px;
  background: var(--as-surface);
}

.as-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.as-row:last-of-type {
  margin-bottom: 1.25rem;
}

.as-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--as-muted);
}

.as-field input,
.as-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--as-text);
  background: var(--as-panel);
  border: 1px solid var(--as-line);
  border-radius: 2px;
}

.as-field input {
  font-family: var(--as-mono);
  font-size: 1rem;
}

.as-field input:focus-visible,
.as-field select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.as-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tf-accent-ink);
  background: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  border-radius: 2px;
  cursor: pointer;
}

.as-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.as-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.as-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Results ─────────────────────────────────────────────────────────────── */

.as-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 30rem) {
  .as-grid { grid-template-columns: 1fr; }
}

.as-metric {
  padding: 1.25rem 1rem;
  border: 1px solid var(--as-line);
  border-radius: 2px;
  background: var(--as-panel);
  text-align: center;
}

.as-metric-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--as-muted);
}

.as-metric-value {
  margin: 0;
  font-family: var(--as-mono);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--tf-accent);
}

.as-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--as-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.as-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 32rem;
  padding-inline: 1.5rem;
  overflow: hidden;
}

@media (max-width: 26rem) {
  .as-wrap,
  .as-ad { padding-inline: 1rem; }
  .as-panel { padding: 1.25rem; }
  .as-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --as-surface: var(--tf-surface);
  --as-panel: var(--tf-surface);
  --as-line: var(--tf-rule);
  --as-text: var(--tf-ink);
  --as-muted: var(--tf-ink-soft);
}
