/* The portal's "Site" page (portal/web/site-admin.js). Every rule is under .fvsa. */
.fvsa { --line: #2a2a2e; --dim: #9a968f; --faint: #6d6a65; --mark: #c9a96a; --bad: #e0928a; --ok: #9ccb9a; --panel: #141416; color: #e8e6e3; }
.fvsa * { box-sizing: border-box; }
.fvsa-hidden { display: none !important; }
.fvsa button, .fvsa select, .fvsa input:not([type=checkbox]) { font: inherit; color: #e8e6e3; background: #0b0b0c; border: 1px solid var(--line); border-radius: 3px; }
.fvsa button { padding: 6px 12px; cursor: pointer; }
.fvsa button:hover:not(:disabled) { border-color: var(--dim); }
.fvsa button:disabled { opacity: 0.45; cursor: default; }
.fvsa button.fvsa-primary { border-color: var(--mark); }
.fvsa select, .fvsa input:not([type=checkbox]) { padding: 5px 8px; }
.fvsa input::placeholder { color: var(--faint); }
.fvsa-hint { color: var(--faint); font-size: 12px; }
.fvsa-empty { color: var(--dim); padding: 24px 0; }

/* header: sticky, so Save and Publish are always to hand */
.fvsa-head { position: sticky; top: 0; z-index: 5; background: #0b0b0c; border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.fvsa-top, .fvsa-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fvsa-social { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; }
.fvsa-tabs { display: flex; }
.fvsa-tabs button { border-right-width: 0; border-radius: 0; }
.fvsa-tabs button:first-child { border-radius: 3px 0 0 3px; }
.fvsa-tabs button:last-child { border-right-width: 1px; border-radius: 0 3px 3px 0; }
.fvsa-tabs button[aria-pressed="true"] { background: #e8e6e3; color: #0b0b0c; }
.fvsa-count { color: var(--dim); font-size: 13px; }
.fvsa-spacer { flex: 1; }
.fvsa-statusline { font-size: 12px; color: var(--dim); white-space: pre-wrap; max-height: 9em; overflow: auto; }
.fvsa-statusline .bad { color: var(--bad); }
.fvsa-statusline .ok { color: var(--ok); }
.fvsa-statusline button { font-size: 12px; padding: 2px 8px; margin-left: 8px; }
.fvsa-alert { border: 1px solid var(--bad); color: var(--bad); padding: 8px 12px; font-size: 13px; }

/* Photos */
.fvsa-row { display: grid; grid-template-columns: 22px 120px 1fr; gap: 12px; padding: 12px 0 12px 8px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.fvsa-row.changed { border-left-color: var(--mark); }
.fvsa-row.picked { background: #17171a; }
.fvsa-tick { margin-top: 4px; width: 16px; height: 16px; }
.fvsa-thumb { width: 120px; height: 120px; object-fit: contain; background: #000; }
.fvsa-switches { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-bottom: 8px; }
.fvsa-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.fvsa-sw input:disabled { cursor: not-allowed; }
.fvsa-flag { color: var(--bad); font-size: 12px; }
.fvsa-fields { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 8px 12px; }
.fvsa-fields label { display: grid; gap: 2px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.fvsa-fields input { width: 100%; text-transform: none; letter-spacing: 0; font-size: 14px; }
.fvsa-file { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* Home and the collections */
.fvsa-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fvsa-tile { position: relative; cursor: grab; }
.fvsa-t { height: 120px; width: auto; background: #000; }
.fvsa-dim .fvsa-t { opacity: 0.45; }
.fvsa-cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0,0,0,0.7); padding: 1px 5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvsa-cover { position: absolute; left: 4px; top: 4px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(0,0,0,0.7); padding: 1px 5px; color: var(--mark); pointer-events: none; }
.fvsa-col { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fvsa-colhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.fvsa-colhead b { font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; }
.fvsa-handle { cursor: grab; color: var(--faint); user-select: none; font-size: 18px; line-height: 1; padding: 2px 4px; }
.fvsa-handle:hover { color: #e8e6e3; }
.fvsa-title { min-width: 220px; font-size: 14px; }
.fvsa-bulk { display: flex; flex-wrap: wrap; gap: 6px; }
.fvsa-bulk button { font-size: 12px; padding: 4px 10px; }
.drop-before { box-shadow: inset 0 3px 0 var(--mark); }
.drop-after { box-shadow: inset 0 -3px 0 var(--mark); }
.fvsa-tile.drop-before { box-shadow: -4px 0 0 var(--mark); }
.fvsa-tile.drop-after { box-shadow: 4px 0 0 var(--mark); }

/* Hero */
.fvsa-herowrap { display: grid; grid-template-columns: minmax(300px, 46%) 1fr; gap: 24px; align-items: start; padding-top: 12px; }
.fvsa-slot { position: relative; border: 1px dashed var(--line); min-height: 240px; display: grid; place-items: center; }
.fvsa-slot.over { border-color: var(--mark); }
.fvsa-slot img { display: block; max-width: 100%; max-height: 62vh; cursor: crosshair; }
.fvsa-slotin { position: relative; display: inline-block; line-height: 0; }
.fvsa-mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #000; pointer-events: none; }
.fvsa-eyeline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(255,255,255,0.6); pointer-events: none; }
.fvsa-herotools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 12px 0; font-size: 13px; }
.fvsa-frames { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.fvsa-frame { display: grid; gap: 4px; color: var(--faint); font-size: 12px; }
.fvsa-frame div { overflow: hidden; background: #000; border: 1px solid var(--line); max-width: 100%; }
.fvsa-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fvsa-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.fvsa-pick img { height: 90px; cursor: grab; outline: 2px solid transparent; }
.fvsa-pick img.on { outline-color: var(--mark); }

@media (max-width: 760px) {
  .fvsa-row { grid-template-columns: 22px 1fr; }
  .fvsa-thumb { grid-column: 2; }
  .fvsa-rowmain { grid-column: 1 / -1; }
  .fvsa-fields { grid-template-columns: 1fr; }
  .fvsa-herowrap { grid-template-columns: 1fr; }
}
