/* ============================================================
   UVS Tracker — Tools tab styles (mobile-first)
   Layout utilities come from Tailwind on the page; this file
   holds the tool-specific pieces only. Brand tokens live in
   brand.css — nothing here hard-codes a brand color.
   ============================================================ */

/* Sub-nav: pill buttons, active one in brand red. */
.t-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.t-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.t-nav-btn.t-nav-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Big-number result cards. */
.t-bignum {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.t-bignum .t-bignum-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.t-bignum .t-bignum-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* QR canvas + image preview: bordered, never overflow the card. */
.t-qr-canvas,
.t-img-preview {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

/* Drag-and-drop zone. */
.t-drop {
  border: 2px dashed var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  cursor: pointer;
  background: #fff;
}
.t-drop.t-drop-on {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--ink);
}

/* Tool panels: roomy on phones, safe-area aware at the bottom. */
#tab-tools {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.t-tool-panel .kv-input,
.t-tool-panel select.kv-input,
.t-tool-panel input[type="number"],
.t-tool-panel input[type="text"],
.t-tool-panel input[type="url"] {
  font-size: 1rem;
}
.t-tool-panel input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

/* Inline error text. */
.t-error {
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Listing output block. */
.t-list-output {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}
.t-list-output ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.t-list-output li {
  margin-bottom: 0.25rem;
}
