/* Hari Villa — v0.3.0
 * JS-requirement notice and upload progress.
 *
 * A separate stylesheet rather than an append to style.css: style.css is
 * the locked design shell and this is feature CSS with a clear lifetime.
 * Loaded by base.html after style.css, so it can use the tokens and win
 * on specificity ties.
 */

/* ---------- JS requirement notice ----------
   <noscript> is invisible when JS is on, so this costs nothing in the
   normal case. It exists because every interactive surface in this app —
   nav toggle, text-size control, reveal buttons, all three upload forms —
   is JS-driven. Without it a JS-disabled visitor gets a page of buttons
   that silently do nothing, and no explanation. */
.noscript-notice {
  display: block;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 2px solid var(--gold);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- upload progress ----------
   One row per file: name, track, percentage. Above 25 files in a batch
   the renderer collapses to a single aggregate row — see ROW_LIMIT in
   upload.js. Phone rows are 44px per the mobile-first rule; desktop
   tightens inside the media query, never the other way round. */
.upload-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.upload-row {
  display: grid;
  grid-template-columns: 1fr 6rem 3.2rem;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.84rem;
  color: var(--muted);
}
.upload-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.upload-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.15s linear;
}
.upload-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.upload-row.is-done .upload-pct { color: var(--green); }
.upload-row.is-error .upload-bar i { width: 100%; background: var(--red); }
.upload-row.is-error .upload-pct { color: var(--red); }
.upload-count {
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
button[disabled] { opacity: 0.55; cursor: default; }

@media (min-width: 900px) {
  .upload-row { min-height: 26px; }
}
