/* SampleNova v0.12 — anonymous identity, consistent folder actions and relationship-aware listening. */

:root {
  --v12-focus: #ff65b0;
  --v12-focus-soft: #ffacd5;
  --v12-violet: #8062ff;
  --v12-yellow: #edf36a;
  --v12-ink: #100d14;
}

/* Identity and navigation order */
.workspace-sidebar {
  display: flex;
  flex-direction: column;
}

.account-card--top {
  order: 0;
  margin: 0 0 16px;
  border-color: rgba(255, 159, 206, .24);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .08), transparent 34%),
    linear-gradient(135deg, rgba(255, 79, 163, .09), rgba(111, 72, 255, .11));
}

.account-card--top .avatar {
  color: var(--v12-ink);
  background: linear-gradient(145deg, var(--v11-yellow), var(--v11-pink-soft));
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}

.workspace-nav { order: 1; }
.workspace-sidebar-bottom { order: 2; margin-top: auto; }

.workspace-brand--bottom {
  min-height: 62px;
  margin: 0;
  padding: 10px 11px;
  border-color: rgba(175, 156, 255, .18);
  background: rgba(255, 255, 255, .025);
}

.workspace-brand--bottom .workspace-logo {
  width: 39px;
  height: 39px;
  box-shadow: inset 0 0 0 4px #100c14, 0 0 18px rgba(111, 72, 255, .16);
}

.workspace-brand--bottom .samplepath-mark { width: 32px; height: 32px; }

/* Weight creates hierarchy without making every line larger. */
.page-header h1 { font-weight: 300; }
.page-header p { font-weight: 400; }
.workspace-nav-item .nav-copy strong { font-weight: 500; }
.workspace-nav-item.is-active .nav-copy strong { font-weight: 600; }
.workspace-nav-item .nav-copy small { font-weight: 400; }
.workspace-shell .eyebrow,
.modal-card .eyebrow { font-weight: 600; }
.asset-primary strong,
.folder-list-heading h2,
.folder-audio-shelf h2,
.folder-relationship-panel h2 { font-weight: 500; }
.asset-secondary strong,
.asset-evidence strong { font-weight: 400; }
.button { font-weight: 600; }

.workspace-top-actions { display: flex; align-items: center; gap: 8px; }
.back-to-source-button {
  border-color: rgba(255, 159, 206, .25) !important;
  color: var(--v11-paper) !important;
}
.back-to-source-button:hover { background: rgba(255, 79, 163, .09) !important; }

/* Consistent browse/details actions for both folder types. */
.folder-card-actions,
.modal-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.collection-foot {
  align-items: flex-end;
  gap: 12px;
}

.collection-foot > span { max-width: 42%; }
.folder-card-actions .button { min-height: 39px; padding: 8px 11px; font-size: 13px; }
.project-card > .folder-card-actions { margin-top: auto; padding-top: 15px; }
.page-end-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.project-detail-banner {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(300px, 1.28fr);
  align-items: center;
  gap: 24px;
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--v11-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 35%, rgba(255, 79, 163, .16), transparent 28%),
    radial-gradient(circle at 74% 40%, rgba(111, 72, 255, .16), transparent 36%),
    #100d14;
}

.project-detail-banner > div:last-child { display: grid; gap: 8px; }
.project-detail-banner > div:last-child > strong { color: var(--v11-paper); font-size: 32px; font-weight: 350; }
.project-detail-banner p { max-width: 720px; margin: 0; color: var(--v11-muted); font-size: 14px; line-height: 1.58; }
.constellation-large svg { width: 100%; overflow: visible; }
.constellation-large path { fill: none; stroke: var(--v11-violet-soft); stroke-width: 1.5; stroke-dasharray: 5 6; }
.constellation-large circle { fill: var(--v11-paper); filter: drop-shadow(0 0 7px rgba(255,159,206,.7)); }
.constellation-large circle:nth-of-type(2),
.constellation-large circle:nth-of-type(5) { fill: var(--v11-yellow); }
.constellation-large circle:nth-of-type(4) { fill: var(--v11-pink); }

/* Direct playback for genuinely attached files. */
.folder-audio-shelf,
.folder-relationship-panel {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--v11-line);
  border-radius: 21px;
  background: #100d14;
}

.folder-audio-shelf > header,
.folder-relationship-panel > header,
.folder-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.folder-audio-shelf h2,
.folder-relationship-panel h2,
.folder-list-heading h2 { margin: 5px 0 0; color: var(--v11-paper); font-size: 24px; letter-spacing: -.035em; }
.folder-audio-shelf > header p,
.folder-relationship-panel > header p { max-width: 440px; margin: 0; color: var(--v11-muted); font-size: 13px; line-height: 1.5; text-align: right; }
.folder-audio-list { display: grid; gap: 8px; margin-top: 15px; }

.folder-audio-item {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) minmax(220px, .9fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(245, 240, 232, .08);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.folder-audio-item .asset-art { width: 48px; height: 48px; border-radius: 12px; }
.folder-audio-item > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.folder-audio-item strong { overflow: hidden; color: var(--v11-paper); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.folder-audio-item small { color: var(--v11-muted); font-size: 12px; }
.folder-audio-item audio { width: 100%; height: 38px; accent-color: var(--v11-pink); }
.audio-preview-placeholder {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  color: var(--v11-copy);
  border: 1px dashed rgba(175, 156, 255, .28);
  border-radius: 12px;
  background: rgba(111, 72, 255, .06);
}
.audio-preview-placeholder span { color: var(--v11-pink-soft); }
.audio-preview-placeholder small { font-size: 12px; }

/* Relationships are first-class, editable DAM metadata. */
.folder-relationship-list { display: grid; gap: 10px; margin-top: 16px; }
.folder-relationship-card {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(190px, 1fr) minmax(150px, .85fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(175, 156, 255, .15);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,79,163,.035), rgba(111,72,255,.055));
}
.relationship-sound { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; }
.relationship-sound .asset-art { width: 42px; height: 42px; border-radius: 11px; }
.relationship-sound strong { overflow: hidden; color: var(--v11-copy); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.relationship-bridge { min-width: 0; display: grid; gap: 4px; text-align: center; }
.relationship-bridge > span { color: var(--v11-yellow); font-size: 12px; font-weight: 500; }
.relationship-bridge i { height: 1px; background: linear-gradient(90deg, transparent, var(--v11-violet-soft), var(--v11-pink-soft), transparent); }
.relationship-bridge small { overflow: hidden; color: var(--v11-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.folder-relationship-card > .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.relationship-builder-details { margin-top: 14px; border-top: 1px solid var(--v11-line); }
.relationship-builder-details > summary { padding: 14px 0 4px; color: var(--v11-pink-soft); font-size: 13px; font-weight: 500; cursor: pointer; }
.folder-relationship-builder { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 9px; margin-top: 10px; }
.folder-relationship-builder label { min-width: 0; display: grid; gap: 6px; }
.folder-relationship-builder label > span { color: var(--v11-muted); font-size: 12px; }
.folder-relationship-builder select,
.folder-relationship-builder input,
.relation-project-choice select { min-width: 0; min-height: 42px; padding: 9px 11px; color: var(--v11-paper); border: 1px solid var(--v11-line); border-radius: 12px; background: var(--v11-field); font-size: 13px; }
.folder-relationship-builder .relationship-builder-note { grid-column: 1 / -2; }
.folder-relationship-builder > .button { align-self: end; }
.relationship-builder-empty { color: var(--v11-muted); font-size: 13px; }
.relation-project-choice { display: grid; gap: 7px; margin: 13px 0; }
.relation-project-choice > span { color: var(--v11-copy); font-size: 13px; }
.folder-list-heading { margin: 28px 0 11px; }
.folder-list-heading > span { color: var(--v11-muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; }

/* Capture window: richer stars with an opaque reading surface. */
.capture-popover {
  background:
    linear-gradient(rgba(17, 13, 21, .975), rgba(17, 13, 21, .992)),
    radial-gradient(circle at 30% 0%, rgba(111, 72, 255, .24), transparent 42%);
}

.capture-popover::after {
  background-image:
    radial-gradient(circle at 7% 8%, rgba(255,255,255,.72) 0 1px, transparent 1.35px),
    radial-gradient(circle at 76% 9%, rgba(255,159,206,.72) 0 1.1px, transparent 1.55px),
    radial-gradient(circle at 42% 5%, rgba(233,244,91,.62) 0 1px, transparent 1.45px),
    radial-gradient(circle at 89% 28%, rgba(175,156,255,.72) 0 .9px, transparent 1.4px),
    radial-gradient(circle at 18% 33%, rgba(255,255,255,.48) 0 .8px, transparent 1.25px),
    radial-gradient(circle at 56% 22%, rgba(255,79,163,.44) 0 .8px, transparent 1.25px);
  background-size: 61px 53px, 79px 67px, 97px 83px, 113px 101px, 127px 109px, 151px 137px;
  opacity: .62;
  mask-image: linear-gradient(to bottom, #000 0 190px, rgba(0,0,0,.52) 300px, transparent 520px);
}

.quick-field-groups { display: grid; gap: 9px; margin: 12px 0; }
.quick-field-group { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 10px; }
.quick-field-group > span { padding-top: 7px; color: var(--v11-muted); font-size: 12px; }
.quick-field-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-field-group button,
.custom-tag-builder button,
.prompt-strip--creator button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--v11-copy);
  border: 1px solid var(--v11-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
}
.quick-field-group button:hover,
.quick-field-group button.is-selected,
.prompt-strip--creator button:hover,
.prompt-strip--creator button.is-selected { color: var(--v12-ink); border-color: var(--v11-yellow); background: var(--v11-yellow); }

.custom-tag-builder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 10px; }
.custom-tag-builder label { display: grid; }
.custom-tag-builder input { min-height: 39px; padding: 8px 11px; color: var(--v11-paper); border: 1px solid var(--v11-line); border-radius: 11px; background: var(--v11-field); font-size: 13px; }
.custom-tag-builder button { min-height: 39px; border-radius: 11px; color: var(--v11-pink-soft); }
.prompt-strip--creator { display: flex; flex-wrap: wrap; overflow: visible; gap: 6px; }
.prompt-strip--creator button { white-space: normal; text-align: left; }

.collaborator-link-note > div {
  padding: 14px;
  border: 1px dashed rgba(175, 156, 255, .25);
  border-radius: 14px;
  background: rgba(111, 72, 255, .055);
}
.collaborator-link-note strong { color: var(--v11-paper); font-size: 14px; font-weight: 500; }
.collaborator-link-note p { margin: 5px 0 0; color: var(--v11-muted); font-size: 13px; line-height: 1.5; }

/* Sharing leaves a visible, actionable next step. */
.share-builder { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.copy-next-step {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(233, 244, 91, .24);
  border-radius: 15px;
  background: rgba(233, 244, 91, .055);
}
.copy-next-step[hidden] { display: none; }
.copy-next-step > span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--v12-ink); border-radius: 50%; background: var(--v11-yellow); font-weight: 700; }
.copy-next-step > div { display: grid; justify-items: start; gap: 6px; }
.copy-next-step strong { color: var(--v11-paper); font-size: 14px; font-weight: 600; }
.copy-next-step p { margin: 0; color: var(--v11-copy); font-size: 13px; line-height: 1.52; }
.copy-next-step .button { margin-top: 3px; }
.share-result--invite { margin: 12px 0; }

@media (max-width: 1180px) {
  .share-builder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-relationship-card { grid-template-columns: 1fr 1.2fr 1fr; }
  .folder-relationship-card > .button { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 840px) {
  .workspace-sidebar { display: grid; }
  .account-card--top { margin: 0; }
  .workspace-sidebar-bottom { margin-top: 0; }
  .workspace-brand--bottom { min-height: 42px; padding: 3px; border: 0; background: transparent; }
  .workspace-brand--bottom .workspace-brand-copy { display: none; }
  .workspace-brand--bottom .workspace-logo { width: 36px; height: 36px; }
  .project-detail-banner { grid-template-columns: 1fr; }
  .folder-audio-item { grid-template-columns: 48px minmax(0, 1fr); }
  .folder-audio-item audio,
  .folder-audio-item .audio-preview-placeholder { grid-column: 1 / -1; }
  .folder-relationship-card { grid-template-columns: 1fr; }
  .relationship-bridge { text-align: left; }
  .folder-relationship-card > .button { grid-column: auto; justify-self: stretch; }
  .folder-relationship-builder { grid-template-columns: 1fr; }
  .folder-relationship-builder .relationship-builder-note { grid-column: auto; }
  .share-builder { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .workspace-sidebar { grid-template-columns: 44px minmax(0, 1fr) 88px; }
  .workspace-sidebar-bottom { gap: 3px; }
  .workspace-brand--bottom { display: grid; width: 40px; }
  .workspace-brand--bottom .workspace-logo { width: 34px; height: 34px; }
  .workspace-top-actions [data-action="import-audio"] { display: none; }
  .back-to-source-button { min-height: 40px !important; padding: 8px 10px !important; font-size: 12px !important; }
  .folder-card-actions { width: 100%; justify-content: stretch; }
  .folder-card-actions .button { flex: 1; }
  .collection-foot { align-items: stretch; flex-direction: column; }
  .collection-foot > span { max-width: none; }
  .folder-audio-shelf > header,
  .folder-relationship-panel > header,
  .folder-list-heading { align-items: flex-start; flex-direction: column; }
  .folder-audio-shelf > header p,
  .folder-relationship-panel > header p { text-align: left; }
  .folder-audio-item { grid-template-columns: 42px minmax(0, 1fr); }
  .folder-audio-item .asset-art { width: 42px; height: 42px; }
  .quick-field-group { grid-template-columns: 1fr; gap: 5px; }
  .quick-field-group > span { padding-top: 0; }
  .custom-tag-builder { grid-template-columns: 1fr; }
  .share-result,
  .share-result--invite { grid-template-columns: 1fr; }
  .copy-next-step { grid-template-columns: 1fr; }
  .modal-action-group { width: 100%; justify-content: stretch; }
  .modal-action-group .button { width: 100%; }
}
