.pa-output {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}

/* The output column's top bar — same fixed height as the sidebar's .pa-brand and the Platforms &
   Formats column's empty spacer (theme.css's --pa-header-bar-h) so the three columns' top edges
   line up, but unlike those two this one actually holds content: "Output", its summary, and the
   Select all/Download actions all live in this one row now (issue #7 — they used to sit in a
   separate row below an empty spacer). Output has no second "Project details"-style heading row
   below this bar; the card grid starts directly under it. */
.pa-output__topbar {
  flex: 0 0 auto;
  height: var(--pa-header-bar-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--divider);
}

.pa-output__title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pa-output__summary {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.pa-output__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pa-output__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.pa-output__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.pa-output__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--divider);
}

.pa-output__footer-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Output card */

.pa-output-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-mid);
  border: 1px solid var(--divider);
  transition:
    border-color 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.pa-output-card:hover {
  transform: translateY(-2px);
}

.pa-output-card[data-selected="true"] {
  border-color: var(--accent);
}

.pa-output-card__media {
  position: relative;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pa-card-media);
  border-bottom: 1px solid var(--divider);
}

.pa-output-card__media[data-has-preview="true"] {
  background-size: cover;
}

.pa-output-card__checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid var(--divider);
}

.pa-output-card__checkbox[data-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.pa-output-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid var(--divider);
}

.pa-output-card__chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(26, 26, 26, 0.72);
  padding: 3px 6px;
  border-radius: 2px;
}

/* Cosmetic preview of the real, pixel-baked watermark every export gets until unlocked (see
   app/watermark.js) — offset below the checkbox / above the kind chip so the corners this app's
   own UI already uses (checkbox top-left, platform badge top-right, kind chip bottom-right)
   don't collide with it. */
.pa-output-card__watermark-logo {
  position: absolute;
  top: 32px;
  left: 10px;
  height: 14px;
  width: auto;
  opacity: 0.75;
  pointer-events: none;
}

.pa-output-card__watermark-text {
  position: absolute;
  bottom: 26px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  opacity: 0.85;
  pointer-events: none;
  white-space: nowrap;
}

.pa-output-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.pa-output-card__filename {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  word-break: break-all;
}

.pa-output-card__spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pa-output-card__spec {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.pa-output-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pa-output-card__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 3px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.pa-output-card__icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pa-output-card__icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pa-output-card__icon-btn[data-customized="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* Empty state (no outputs yet) */

.pa-output-empty {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pa-output-empty__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pa-output-empty__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-output-empty__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pa-output-empty__step[data-done="true"] {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pa-output-empty__step-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  /* Matches the step's own text color (not --divider, which read as too low-contrast against
     the dark background — issue #7) so an open (not-yet-done) circle is as legible as its label. */
  border: 1px solid var(--text-secondary);
}

.pa-output-empty__step[data-done="true"] .pa-output-empty__step-mark {
  background: var(--accent);
  border-color: var(--accent);
}
