/* SPDX-License-Identifier: GPL-3.0-or-later
   Copyright (C) 2026 the tapey-1 contributors

   The export sheet (export.js) and the Feedback part of the settings (feedback.js). */

.export-sheet { width: min(640px, 100%); }

.ex-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ex-kind {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 12px 11px;
  border: 1px solid #383c43;
  border-radius: 10px;
  background: #26292e;
  cursor: pointer;
  transition: border-color 80ms, background 80ms;
}
.ex-kind:hover { border-color: #4a4f57; }
.ex-kind input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.ex-kind:has(input:checked) { border-color: var(--knob-orange); background: rgba(255, 100, 32, 0.07); }
.ex-kind:has(input:focus-visible) { outline: 2px solid var(--knob-blue); outline-offset: 1px; }
.ex-kind.empty { cursor: default; opacity: 0.55; }
.ex-kind.empty:hover { border-color: #383c43; }
.ex-art { width: 48px; height: 32px; margin-bottom: 2px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ex-art .soft { stroke: var(--text-faint); }
.ex-kind:has(input:checked) .ex-art { stroke: var(--knob-orange); }
.ex-kind:has(input:checked) .ex-art .soft { stroke: rgba(255, 100, 32, 0.5); }
.ex-kind b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ex-kind span { font-size: 12px; line-height: 1.4; color: var(--text-soft); }
.ex-meta { margin-top: auto; padding-top: 4px; font: 500 11.5px var(--mono); font-style: normal; color: var(--text); }
.ex-kind.empty .ex-meta { color: var(--text-faint); }

.ex-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ex-label { flex: 0 0 64px; font-size: 13px; color: var(--text-soft); }
.ex-format-note { font-size: 12px; color: var(--text-soft); line-height: 1.35; }
.ex-name {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #3b3f46;
  border-radius: 6px;
  background: #1a1c1f;
  color: var(--text);
  font: 500 13px var(--mono);
}
.ex-name::placeholder { color: var(--text-faint); }
.ex-name:focus-visible { outline: 2px solid var(--knob-blue); outline-offset: 1px; }
.ex-ext { font: 500 12.5px var(--mono); color: var(--text-faint); }
.ex-where { margin: 10px 0 0 74px; font-size: 12px; line-height: 1.45; color: var(--text-soft); word-break: break-word; }
.ex-where b { font-weight: 500; color: var(--text); font-family: var(--mono); font-size: 11.5px; }

.ex-work { margin-top: 4px; }
.ex-bar { height: 6px; border-radius: 3px; background: #1a1c1f; overflow: hidden; box-shadow: inset 0 0 0 1px #33373d; }
.ex-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--knob-orange); transition: width 120ms linear; }
.ex-work.done .ex-bar i { background: var(--knob-green); }
.ex-work.bad .ex-bar i { background: #ff7a66; }
.ex-status { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text); word-break: break-word; }
.ex-status b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.ex-work.bad .ex-status { color: #ff9c8c; }
.ex-status .soft { display: block; margin-top: 2px; font-size: 12px; color: var(--text-soft); }

.ex-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ex-gap { flex: 1 1 auto; }
.ex-foot .btn { height: 32px; }

/* The settings' Audio files and Feedback parts sit low and stay plain. */
.field.files .row .btn, .field.feedback .row .btn { flex: 0 0 auto; }

@media (max-width: 560px) {
  .ex-kinds { grid-template-columns: 1fr; }
  .ex-kind { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 3px; align-items: start; }
  .ex-art { grid-row: 1 / span 3; margin: 2px 0 0; }
  .ex-meta { padding-top: 2px; }
  .ex-where { margin-left: 0; }
  .ex-row { flex-wrap: wrap; }
  .ex-label { flex-basis: 100%; }
  .ex-format-note { flex-basis: 100%; }
}
