/* Velora 2.1: portfolio profile (fo-), studio portfolio manager (pf-), creator switch (cr-). Uses the theme tokens. */
.fo { padding-top: 32px; padding-bottom: 48px; }
.fo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.fo-left { grid-column: span 7; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top-h) + 24px); }
.fo-right { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fo-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; height: min(520px, 62vh); }
.fo-hero.one { grid-template-columns: 1fr; }
.fo-hero button, .fo-big { display: block; position: relative; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); cursor: zoom-in; min-height: 0; }
.fo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.fo-hero button:hover img { transform: scale(1.02); }
.fo-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
.fo-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 15px; }
.fo-empty { display: flex; align-items: center; justify-content: center; cursor: default; }
.fo-swipe, .fo-count { display: none; }
.fo-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fo-spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.fo-spec small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.fo-spec b { font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.fo-id h1 { margin: 12px 0 0; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fo-head { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); }
.fo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fo-badges:empty { display: none; }
.fo-bio { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.fo-rates, .fo-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 20px 20px; }
.fo-box { padding: 20px; }
.fo-box h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.fo-box h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.fo-rate { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fo-rate small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fo-rate b { font-size: 16px; white-space: nowrap; }
.fo-all { margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.fo-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fo-act { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.fo-act .grow { flex: 1; }
.fo-round { width: 52px; height: 52px; flex: none; border-radius: 26px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fo-round:hover { border-color: var(--ink); }
.fo-book { border-radius: 26px; }
.fo-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fo-dl div { min-width: 0; }
.fo-dl dt { font-size: 12px; color: var(--muted); }
.fo-dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.fo-rev { padding: 12px 0; border-top: 1px solid var(--line); }
.fo-rev:first-of-type { border-top: 0; padding-top: 0; }
.fo-rev p { margin: 8px 0 0; font-size: 14px; }
.fo-report { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 0; cursor: pointer; align-self: flex-start; }
.fo-cta { grid-template-columns: auto 1fr !important; }
.fo-lb .sheet-body { max-width: 760px; }
.fo-lb-list { display: flex; flex-direction: column; gap: 12px; }
.fo-lb-list img { width: 100%; height: auto; border-radius: var(--r); display: block; background: var(--surface-2); }

@media (max-width: 1100px) and (min-width: 861px) {
  .fo-left { grid-column: span 6; } .fo-right { grid-column: span 6; }
  .fo-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .fo { padding-top: 0; padding-bottom: 24px; }
  .fo-grid { display: flex; flex-direction: column; gap: 24px; }
  .fo-left { position: static; gap: 12px; width: 100%; }
  .fo-hero:not(.one) { display: none; }
  .fo-hero.one { height: auto; aspect-ratio: 4 / 5; margin: 0 -20px; border-radius: 0; }
  .fo-hero.one .fo-big { border-radius: 0; }
  .fo-swipe { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fo-swipe::-webkit-scrollbar { display: none; }
  .fo-swipe img { flex: none; width: 86%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); scroll-snap-align: center; background: var(--surface-2); }
  .fo-count { display: block; font-size: 12px; color: var(--muted); text-align: center; }
  .fo-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fo-spec { padding: 12px 14px; }
  .fo-id h1 { font-size: 30px; margin-top: 8px; }
  .fo-rates .fo-act { display: none; }
  .fo-rates, .fo-box { border-radius: var(--r); padding-left: 16px; padding-right: 16px; }
  .fo-dl { grid-template-columns: 1fr 1fr; }
}

/* Studio: portfolio manager */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pf-item { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pf-item.drag { opacity: .4; }
.pf-item.over { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-cover { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,.6); color: #fff; }
.pf-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.pf-tools button { width: 40px; height: 40px; border: 0; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pf-tools button:disabled { opacity: .35; cursor: default; }
.pf-add { aspect-ratio: 3 / 4; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; padding: 8px; }
.pf-add:hover { border-color: var(--ink); color: var(--ink); }
.pf-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

@media (max-width: 860px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-tools button { width: 44px; height: 44px; border-radius: 22px; }
}

/* Creator features switch (studio settings and sign up) */
.cr-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cr-row b { display: block; font-size: 15px; }
.cr-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.cr-sw { position: relative; width: 48px; height: 28px; flex: none; }
.cr-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cr-sw span { position: absolute; inset: 0; border-radius: 14px; background: var(--line-2); transition: background .2s; }
.cr-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cr-sw input:checked + span { background: var(--accent); }
.cr-sw input:checked + span::after { transform: translateX(20px); }
.cr-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
