/* Figma inner-page presentation only. Does not style the protected homepage. */
.collection-page,
.upload-page {
  --fig-page-bg: #0a0a0a;
  --fig-page-ink: #f5f0ff;
  --fig-page-pink: #ff2d78;
  --fig-page-blue: #00b0ff;
  --fig-page-green: #39ff14;
  --fig-page-yellow: #ffd600;
  background: var(--fig-page-bg);
  color: var(--fig-page-ink);
  font-family: var(--fig-body, 'Outfit', sans-serif);
  min-height: 70svh;
}

.collection-page :focus-visible,
.upload-page :focus-visible {
  outline: 2px solid var(--fig-page-green);
  outline-offset: 5px;
}

.collection-page .figma-collection-hero,
.upload-page .figma-upload-hero {
  background: var(--fig-page-pink);
  color: #0a0a0a;
  padding: 40px 32px;
}

.collection-page .figma-category-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  font: 11px/1.5 var(--fig-mono, 'Space Mono', monospace);
  letter-spacing: .08em;
}

.collection-page .figma-collection-hero h1 {
  max-width: 1000px;
  margin: 0 0 17px;
  font: 400 48px/1 var(--fig-display, 'Abril Fatface', Georgia, serif);
  letter-spacing: -.015em;
  text-transform: none;
}

.collection-page .figma-collection-description {
  max-width: 700px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.collection-page .figma-collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
}

.collection-page .figma-collection-actions .button {
  min-height: 44px;
  padding: 0 20px;
  gap: 14px;
  font: 700 12px/1.4 var(--fig-mono, 'Space Mono', monospace);
  color: #0a0a0a;
  border: 0;
  background: transparent;
  text-transform: uppercase;
}

.collection-page .figma-upload-button { --button-bg: #f5f0ff; --button-fg: #0a0a0a; }
.collection-page .figma-browse-button { --button-bg: #c91d5a; --button-fg: #0a0a0a; }
.collection-page .figma-collection-actions .button::after {
  background: var(--button-bg);
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0 #0a0a0a;
  border-radius: 0;
}
.collection-page .figma-browse-button::after { box-shadow: none; }
.collection-page .figma-collection-actions .button:hover::after { background: #fff; border-radius: 0; }
.collection-page .figma-collection-actions .button:active::after { box-shadow: 1px 1px 0 #0a0a0a; }
.collection-page .figma-collection-actions .button::before { display: none; }

.collection-page .figma-page-marquee {
  height: 35px;
  background: #0a0a0a;
  color: var(--fig-page-green);
  border-block: 2px solid #0a0a0a;
}
.collection-page .figma-page-marquee .marquee-track { animation-duration: 50s; }
.collection-page .figma-page-marquee .marquee-set { min-width: 100vw; gap: 28px; padding-right: 28px; }
.collection-page .figma-page-marquee .marquee-set span,
.collection-page .figma-page-marquee .marquee-set b { font: 400 14px/1 var(--fig-mono, 'Space Mono', monospace); letter-spacing: .03em; }
.collection-page .figma-page-marquee .marquee-control { top: 2px; right: 7px; width: 27px; height: 27px; border: 1px solid #38502f; color: var(--fig-page-green); background: #0a0a0a; }

.collection-page .figma-collection-body { max-width: 1600px; margin: 0 auto; padding: 48px 32px 64px; }
.collection-page .figma-submissions-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.collection-page .figma-submissions-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; }
.collection-page .figma-submissions-title h2 { margin: 0; font: 400 30px/1.2 var(--fig-display, 'Abril Fatface', Georgia, serif); }
.collection-page #result-count { color: var(--fig-page-pink); font: 14px/1.5 var(--fig-mono, 'Space Mono', monospace); }
.collection-page .browse-modes { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0; }
.collection-page .browse-mode { flex-shrink: 0; min-height: 34px; padding: 7px 13px; background: #f5f0ff; color: #0a0a0a; border: 2px solid #000; font: 700 10px/1.4 var(--fig-mono, 'Space Mono', monospace); cursor: pointer; }
.collection-page .browse-mode[aria-pressed=true] { background: var(--fig-page-pink); color: #0a0a0a; border-color: #000; }
.collection-page .browse-mode:hover { background: #ffd2e2; border-color: #000; }

.collection-page .figma-collection-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid #303033; }
.collection-page .category-tabs { flex: 1 1 55%; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.collection-page .category-tab { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; color: #b6b0c0; background: transparent; border: 1px solid #37323c; font: 10px/1.4 var(--fig-mono, 'Space Mono', monospace); }
.collection-page .category-tab.active { color: #f5f0ff; background: #292029; border-color: var(--fig-page-pink); }
.collection-page .category-tab:hover { color: #fff; border-color: #b6b0c0; }
.collection-page .figma-search-sort { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.collection-page .search-box { display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #37323c; color: #b6b0c0; }
.collection-page .search-box input { width: 170px; max-width: 100%; min-height: 30px; padding: 6px 0; color: #f5f0ff; background: transparent; border: 0; font: 11px/1.4 var(--fig-body, 'Outfit', sans-serif); }
.collection-page .search-box input::placeholder { color: #aaa4b3; }
.collection-page select.sort-select { max-width: 125px; min-height: 32px; padding: 5px 6px; color: #d3cdda; background: #161216; border: 1px solid #37323c; font: 10px/1.4 var(--fig-mono, 'Space Mono', monospace); }
.collection-page .figma-saved-mode { min-height: 32px; padding: 5px 9px; background: #211923; color: #d8cfe0; border: 1px solid #514053; font-size: 9px; }
.collection-page .mode-help { margin: 8px 0 23px; color: #8f8797; font: 9px/1.6 var(--fig-mono, 'Space Mono', monospace); text-align: right; }
.collection-page .art-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.collection-page .art-card { min-width: 0; color: #f5f0ff; }
.collection-page .art-image { aspect-ratio: 1; padding: 0; background: #211b24; border: 2px solid #000; }
.collection-page .art-image > img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.collection-page .art-number { display: none; }
.collection-page .art-open { opacity: 0; background: var(--fig-page-pink); color: #0a0a0a; transition: opacity .2s; }
.collection-page .art-card:hover .art-open,
.collection-page .art-card:focus-visible .art-open { opacity: 1; }
.collection-page .art-info { display: flex; flex-direction: column; padding-top: 12px; }
.collection-page .art-title { order: 1; color: #f5f0ff; font: 400 14px/1.4 var(--fig-display, 'Abril Fatface', Georgia, serif); }
.collection-page .art-media { order: 2; margin-top: 5px; color: var(--fig-page-pink); font: 10px/1.5 var(--fig-mono, 'Space Mono', monospace); text-transform: none; }
.collection-page .art-statement { order: 3; margin-top: 8px; color: #9b94a5; font: 400 11px/1.6 var(--fig-body, 'Outfit', sans-serif); -webkit-line-clamp: 3; }
.collection-page .art-artist { order: 4; margin-top: 9px; color: var(--fig-page-blue); font: 10px/1.5 var(--fig-mono, 'Space Mono', monospace); }
.collection-page .demo-note { margin-top: 32px; color: #958b9e; font: 10px/1.7 var(--fig-mono, 'Space Mono', monospace); }
.collection-page .empty-state { border-color: #4b3b50; color: #f5f0ff; }
.collection-page .empty-state h2 { font: 400 30px/1.2 var(--fig-display, 'Abril Fatface', Georgia, serif); }
.collection-page .empty-state p { color: #b6adbf; }
.collection-page .empty-state .button { --button-bg: #f5f0ff; --button-fg: #0a0a0a; color: #0a0a0a; }
.collection-page .empty-state .button::after { background: var(--button-bg); border-color: #000; }

.upload-page .figma-upload-hero { padding-top: 30px; padding-bottom: 40px; }
.upload-page .upload-return { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; margin: 0 0 18px; color: #0a0a0a; border: 0; font: 12px/1.5 var(--fig-mono, 'Space Mono', monospace); text-decoration: none; }
.upload-page .upload-return:hover { text-decoration: underline; text-underline-offset: 5px; }
.upload-page .figma-upload-hero h1 { margin: 0 0 20px; font: 400 60px/1 var(--fig-display, 'Abril Fatface', Georgia, serif); letter-spacing: -.015em; text-transform: none; }
.upload-page .figma-upload-hero h1 span { display: block; }
.upload-page .figma-upload-hero h1 span:last-child { color: #f5f0ff; }
.upload-page .figma-upload-hero > p { max-width: 600px; margin: 0; font: 15px/1.65 var(--fig-body, 'Outfit', sans-serif); }
.upload-page .figma-upload-body { padding: 48px 32px 64px; }
.upload-page .figma-upload-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 40px; max-width: 1024px; margin: 0; padding: 0; }
.upload-page .figma-upload-artwork,
.upload-page .figma-upload-fields { min-width: 0; }
.upload-page .drop-zone { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; aspect-ratio: 1; color: #0a0a0a; background: var(--fig-page-yellow); border: 4px solid #000; box-shadow: 6px 6px 0 #000; text-align: center; }
.upload-page .drop-zone:hover,
.upload-page .drop-zone.dragover { background: #ffe342; border-color: #000; }
.upload-page .drop-zone.has-image { background: #171217; }
.upload-page .drop-zone-content { padding: 26px; }
.upload-page .drop-zone-content[hidden] { display: none; }
.upload-page .figma-image-icon { display: inline-flex; margin-bottom: 20px; }
.upload-page .drop-zone h2 { margin: 0 0 14px; color: #0a0a0a; font: 400 29px/1.2 var(--fig-display, 'Abril Fatface', Georgia, serif); }
.upload-page .drop-zone .file-spec { margin: 0; color: #0a0a0a; font: 10px/1.7 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .figma-file-choice { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 39px; margin-top: 24px; padding: 9px 17px; color: #f5f0ff; background: #0a0a0a; border: 2px solid #000; font: 700 11px/1.4 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .drop-zone:focus-within { outline: 2px solid var(--fig-page-green); outline-offset: 5px; }
.upload-page .upload-preview { width: 100%; height: 100%; object-fit: contain; }
.upload-page .preview-overlay { color: #0a0a0a; background: var(--fig-page-yellow); border: 2px solid #000; font: 10px/1.5 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .figma-storage-note { margin: 20px 0 10px; color: #c9bfce; font: 11px/1.75 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .figma-image-guidance { margin: 0; color: #8f8797; font: 12px/1.7 var(--fig-body, 'Outfit', sans-serif); }
.upload-page .field { display: block; margin: 0 0 24px; }
.upload-page .field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #f5f0ff; font: 700 11px/1.5 var(--fig-mono, 'Space Mono', monospace); letter-spacing: .035em; }
.upload-page .field-label .counter { color: #a79aae; font: 10px/1.5 var(--fig-mono, 'Space Mono', monospace); font-weight: 400; }
.upload-page .field input { display: block; width: 100%; min-height: 44px; padding: 8px 0 11px; color: #f5f0ff; background: transparent; border: 0; border-bottom: 4px solid var(--fig-page-pink); border-radius: 0; font: 15px/1.5 var(--fig-body, 'Outfit', sans-serif); }
.upload-page .figma-field-artist input { border-bottom-color: var(--fig-page-blue); }
.upload-page .figma-field-media input { border-bottom-color: var(--fig-page-green); }
.upload-page .field input::placeholder { color: #9a8da2; opacity: 1; }
.upload-page .field input:focus { outline: 1px solid #b6a8bf; outline-offset: 5px; }
.upload-page .field textarea { display: block; width: 100%; height: 140px; min-height: 140px; padding: 14px; color: #0a0a0a; background: var(--fig-page-yellow); border: 3px solid #000; border-radius: 0; font: 13px/1.6 var(--fig-body, 'Outfit', sans-serif); resize: vertical; }
.upload-page .field textarea::placeholder { color: #62541c; opacity: 1; }
.upload-page .field select { display: block; width: 100%; min-height: 46px; padding: 10px 13px; color: #0a0a0a; background: var(--fig-page-pink); border: 3px solid #000; border-radius: 0; font: 12px/1.5 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .field select option { color: #0a0a0a; background: #f5f0ff; }
.upload-page .field textarea:focus,
.upload-page .field select:focus { border-color: #000; outline: 2px solid var(--fig-page-green); outline-offset: 4px; }
.upload-page .artist-photo-field { display: flex; align-items: center; gap: 12px; margin: 4px 0 23px; }
.upload-page .photo-placeholder { width: 42px; height: 42px; color: #f5f0ff; background: #211922; border: 1px dashed #88728f; }
.upload-page .artist-photo-field strong { color: #e5d9eb; font: 13px/1.5 var(--fig-body, 'Outfit', sans-serif); }
.upload-page .artist-photo-field span { color: #9d8aa6; font: 9px/1.6 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .form-error { margin: 12px 0; color: #ff9bbd; font: 12px/1.7 var(--fig-body, 'Outfit', sans-serif); }
.upload-page .form-error:empty { margin: 0; }
.upload-page .form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 11px; padding: 0; }
.upload-page .figma-submit-button { --button-bg: #39ff14; --button-fg: #0a0a0a; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 49px; padding: 12px 22px; gap: 16px; color: #0a0a0a; border: 0; font: 700 13px/1.4 var(--fig-mono, 'Space Mono', monospace); }
.upload-page .figma-submit-button::after { background: var(--fig-page-green); border: 3px solid #000; border-radius: 0; box-shadow: 4px 4px 0 #000; }
.upload-page .figma-submit-button:hover::after { background: #73ff59; border-radius: 0; }
.upload-page .figma-submit-button:active::after { box-shadow: 1px 1px 0 #000; }
.upload-page .figma-submit-button::before { display: none; }
.upload-page .figma-submit-button:disabled { opacity: .55; cursor: wait; }
.upload-page .form-actions > p { max-width: none; margin: 0; color: #9d8aa6; text-align: center; font: 10px/1.7 var(--fig-mono, 'Space Mono', monospace); }

@media (max-width: 1100px) {
  .collection-page .figma-collection-controls { flex-direction: column; gap: 14px; }
  .collection-page .category-tabs { flex-basis: auto; }
  .collection-page .figma-search-sort { justify-content: flex-start; }
  .collection-page .mode-help { text-align: left; }
}

@media (max-width: 1023px) {
  .collection-page .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-page .figma-submissions-heading { align-items: flex-start; }
  .collection-page .figma-submissions-title { display: block; }
  .collection-page #result-count { display: block; margin-top: 10px; font-size: 11px; }
  .upload-page .figma-upload-form { grid-template-columns: 1fr; max-width: 620px; gap: 38px; }
}

@media (max-width: 600px) {
  .collection-page .figma-collection-hero,
  .upload-page .figma-upload-hero { padding: 30px 20px; }
  .collection-page .figma-collection-hero h1 { font-size: 39px; line-height: 1.06; overflow-wrap: anywhere; }
  .collection-page .figma-collection-description { font-size: 14px; }
  .collection-page .figma-collection-actions { gap: 14px; margin-top: 22px; }
  .collection-page .figma-collection-actions .button { min-height: 42px; font-size: 10px; padding-inline: 13px; gap: 10px; }
  .collection-page .figma-collection-body { padding: 32px 20px 48px; }
  .collection-page .figma-submissions-heading { flex-direction: column; gap: 18px; margin-bottom: 22px; }
  .collection-page .figma-submissions-title h2 { font-size: 28px; }
  .collection-page .browse-mode { min-height: 35px; padding-inline: 14px; }
  .collection-page .category-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0; scrollbar-width: thin; }
  .collection-page .category-tab { white-space: nowrap; flex-shrink: 0; }
  .collection-page .figma-search-sort { width: 100%; gap: 7px; }
  .collection-page .search-box { flex: 1 1 140px; min-width: 0; }
  .collection-page .search-box input { width: 100%; min-width: 0; }
  .collection-page select.sort-select { max-width: 115px; }
  .collection-page .figma-saved-mode { min-height: 32px; padding-inline: 9px; }
  .collection-page .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .collection-page .art-title { font-size: 14px; }
  .collection-page .art-media { font-size: 9px; }
  .collection-page .art-statement { font-size: 11px; }
  .collection-page .art-artist { font-size: 9px; }
  .collection-page .art-open { opacity: 1; padding: 5px; }
  .collection-page .demo-note { font-size: 9px; }
  .upload-page .figma-upload-hero h1 { font-size: 54px; }
  .upload-page .figma-upload-body { padding: 32px 20px 48px; }
  .upload-page .drop-zone { min-height: 0; }
  .upload-page .drop-zone h2 { font-size: 28px; }
  .upload-page .field input { font-size: 16px; }
  .upload-page .field textarea { font-size: 16px; }
  .upload-page .field select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-page .figma-page-marquee .marquee-track { animation: none; transform: none; }
  .collection-page .figma-page-marquee .marquee-set:nth-child(2) { display: none; }
}
