/* PLAN_OUTPUT_DOWNLOAD_UX -- outputs gallery + download-all button.
   UB-B 2026-05-12. Mobile-first; iPhone 375px is the daily-driver. */

/* -------- Gallery -------- */

.outputs-gallery {
  padding-bottom: 4rem;
}

.outputs-head h1 {
  color: #e0e0e0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.outputs-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, var(--y2k-chrome-2), var(--y2k-chrome-1));
  border: 1px solid var(--y2k-chrome-shine);
  border-radius: 6px;
}
.of-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--y2k-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.of-input {
  background: #15151a;
  color: #e0e0e0;
  border: 1px solid var(--y2k-chrome-shine);
  border-radius: 3px;
  padding: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  /* iPhone tap-target hint -- inputs get the min-height via padding */
  min-height: 36px;
  min-width: 12rem;
}
.of-input-narrow { min-width: 5rem; }
.of-submit {
  /* iPhone HIG 44px tap target */
  min-height: 44px;
  min-width: 100px;
  padding: 0.65rem 1.25rem;
  background: var(--y2k-magenta);
  color: #fff;
  border: 1px solid var(--y2k-magenta);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.of-submit:hover { background: #ff5cd4; }

.run-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .run-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .run-list { grid-template-columns: repeat(3, 1fr); }
}

.run-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--y2k-chrome-2), var(--y2k-chrome-1));
  border: 1px solid var(--y2k-chrome-shine);
  border-radius: 6px;
  padding: 0.75rem;
}
.run-link {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: #e0e0e0;
  /* iPhone tap target */
  min-height: 44px;
}
.run-link:hover { background: rgba(0, 247, 255, 0.05); }

.run-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #0a0a10;
}
.run-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--y2k-cyan);
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  background: #15151a;
  border: 1px dashed var(--y2k-chrome-shine);
}

.run-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  flex: 1;
  min-width: 0;
}
.run-meta-line {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.run-client {
  color: var(--y2k-magenta);
  font-family: ui-monospace, monospace;
  font-weight: bold;
}
.run-program {
  color: var(--y2k-lime);
  font-family: ui-monospace, monospace;
}
.run-id {
  color: #888;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  word-break: break-all;
}

.run-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(108, 108, 136, 0.4);
  padding-top: 0.5rem;
}
.run-zip-btn {
  /* iPhone tap target */
  min-height: 44px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  background: var(--y2k-magenta);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.run-zip-btn:hover { background: #ff5cd4; }

.run-empty {
  margin-top: 1rem;
  padding: 1.5rem;
  text-align: center;
  border-radius: 6px;
  border: 1px dashed var(--y2k-chrome-shine);
}

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
  font-family: ui-monospace, monospace;
}
.page-link {
  /* iPhone tap target */
  min-height: 44px;
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: #15151a;
  color: var(--y2k-cyan);
  border: 1px solid var(--y2k-chrome-shine);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.page-link:hover { color: var(--y2k-magenta); border-color: var(--y2k-magenta); }
.page-disabled {
  color: #555;
  cursor: not-allowed;
}
.page-info {
  color: #888;
  font-size: 0.85rem;
}

/* -------- Download-all button partial -------- */

.download-all-bundle {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.download-all-btn {
  /* iPhone HIG 44px tap target */
  min-height: 44px;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--y2k-magenta);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--y2k-magenta);
  box-shadow: 0 0 8px rgba(255, 44, 196, 0.3);
}
.download-all-btn:hover {
  background: #ff5cd4;
  box-shadow: 0 0 12px rgba(255, 92, 212, 0.5);
}
.download-all-icon {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--y2k-amber);
}

.download-all-link {
  color: var(--y2k-cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--y2k-cyan);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  /* iPhone tap target via padding */
  padding: 0.5rem 0.25rem;
}
.download-all-link:hover {
  color: var(--y2k-magenta);
  border-color: var(--y2k-magenta);
}
