.riffello-artist-portal {
  max-width: 760px;
  margin: 32px auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(15,18,28,.88);
  color: #f7f7fb;
}
.riffello-studio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
}
.riffello-studio-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.riffello-studio-nav a:hover,
.riffello-studio-nav a:focus-visible { border-color: #b8a6ff; background: rgba(184,166,255,.12); }
.riffello-artist-plan-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 22px 0 26px;
  padding: 20px;
  border: 1px solid rgba(184,166,255,.34);
  border-radius: 14px;
  background: linear-gradient(130deg, rgba(89,61,160,.24), rgba(15,18,28,.58));
}
.riffello-artist-plan-card h3 { margin: 0 0 6px; color: #fff; }
.riffello-artist-plan-card p:not(.riffello-portal-eyebrow) { max-width: 58ch; margin: 0; }
.riffello-artist-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.riffello-plan-included { color: #d9ccff; font-weight: 700; }
.riffello-artist-release-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.riffello-release-delete {
  padding: 7px 12px;
  border: 1px solid rgba(255,130,148,.42);
  border-radius: 999px;
  background: transparent;
  color: #ffb4bf;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.riffello-release-delete:hover,
.riffello-release-delete:focus-visible { background: rgba(255,130,148,.12); }
.riffello-release-delete:disabled { cursor: wait; opacity: .65; }
.riffello-release-manage-status { min-height: 1.5em; color: #d9ccff; }
.riffello-portal-header h2 { margin: 0 0 10px; color: inherit; }
.riffello-portal-header p { max-width: 62ch; }
.riffello-portal-eyebrow {
  margin: 0 0 8px;
  color: #b8a6ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.riffello-portal-form fieldset {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
}
.riffello-portal-form legend { padding: 0 8px; font-weight: 700; }
.riffello-portal-form label { display: grid; gap: 7px; font-weight: 600; }
.riffello-portal-form input[type="text"],
.riffello-portal-form input[type="file"],
.riffello-portal-form select,
.riffello-portal-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 9px;
  background: #10131d;
  color: #fff;
}
.riffello-portal-form input[type="file"] { padding: 10px; }
.riffello-portal-form small,
.riffello-portal-upgrade { color: #c5c6d2; font-weight: 400; }
.riffello-portal-attestation label {
  grid-template-columns: 22px 1fr;
  align-items: start;
  line-height: 1.55;
  font-weight: 400;
}
.riffello-portal-attestation input { margin-top: 4px; }
.riffello-portal-profile { padding: 12px 14px; border-left: 3px solid #9c82ff; }
.riffello-portal-policy-links { margin: -2px 0 0 29px; color: #c5c6d2; line-height: 1.7; }
.riffello-portal-policy-links a { color: #c9bcff; text-decoration: underline; text-underline-offset: 2px; }
.riffello-portal-status { min-height: 1.5em; margin-top: 14px; color: #c9bcff; }
.riffello-portal-form button[disabled] { opacity: .65; cursor: wait; }
.riffello-portal-message { padding: 18px; border-radius: 12px; }
@media (max-width: 600px) {
  .riffello-artist-portal { margin: 18px auto; padding: 18px; }
  .riffello-portal-form fieldset { padding: 14px; }
}

/* Artist profile and release studio */
.riffello-artist-portal { width: min(100%, 900px); }
.riffello-artist-portal form { margin-top: 24px; }
.riffello-artist-portal fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin: 24px 0; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.025); }
.riffello-artist-portal fieldset legend { padding: 0 8px; color: #f7f7fb; font-weight: 750; }
.riffello-artist-portal fieldset > legend,
.riffello-artist-portal fieldset > p,
.riffello-artist-portal fieldset > .riffello-portal-profile,
.riffello-artist-portal .riffello-portal-social-grid,
.riffello-artist-portal .riffello-portal-image-fields,
.riffello-artist-portal .riffello-portal-policy-links { grid-column: 1 / -1; }
.riffello-artist-portal form > label,
.riffello-artist-portal fieldset > label { display: grid; gap: 7px; font-weight: 600; }
.riffello-artist-portal input[type="url"],
.riffello-artist-portal input[type="text"],
.riffello-artist-portal input[type="file"],
.riffello-artist-portal select,
.riffello-artist-portal textarea {
  width: 100%; min-height: 46px; box-sizing: border-box; padding: 12px;
  border: 1px solid rgba(255,255,255,.23); border-radius: 10px;
  background: #10131d; color: #fff; font: inherit;
}
.riffello-artist-portal select[multiple] { min-height: 150px; }
.riffello-artist-portal textarea { min-height: 112px; resize: vertical; }
.riffello-artist-portal small,
.riffello-portal-help,
.riffello-portal-upgrade { color: #b8bdca; font-weight: 400; line-height: 1.55; }
.riffello-portal-image-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.riffello-portal-image-field { min-width: 0; display: grid; align-content: start; gap: 10px; }
.riffello-portal-image-field > label { display: grid; gap: 7px; font-weight: 600; }
.riffello-image-preview { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); }
.riffello-banner-preview { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); }
.riffello-artist-portal .riffello-inline-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.riffello-artist-portal .riffello-inline-check input,
.riffello-artist-portal .riffello-portal-attestation input { width: auto; min-height: 0; }
.riffello-portal-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.riffello-portal-social-grid label { display: grid; gap: 7px; font-weight: 600; }
.riffello-artist-portal .riffello-portal-attestation label { grid-template-columns: 22px minmax(0, 1fr); align-items: start; font-weight: 400; line-height: 1.55; }
.riffello-artist-portal .riffello-portal-attestation input { margin-top: 5px; }
.riffello-artist-portal > form > button { margin-top: 4px; }
.riffello-portal-profile { margin: 0; padding: 12px 14px; border-left: 3px solid #c7f36b; background: rgba(255,255,255,.035); }
.riffello-profile-status,
.riffello-portal-status { min-height: 1.5em; margin: 12px 0 0; color: #c9bcff; }
.riffello-artist-portal button[disabled] { opacity: .65; cursor: wait; }
.riffello-artist-portal .riffello-portal-help { grid-column: 1 / -1; margin: 0; }
.riffello-portal-gate { display: grid; gap: 6px; margin-top: 24px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.riffello-artist-releases { margin: 34px 0; }
.riffello-artist-releases h3 { margin: 0 0 14px; }
.riffello-artist-release-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.riffello-artist-release { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.035); }
.riffello-artist-release strong { display: block; color: #fff; }
.riffello-artist-release-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.riffello-artist-release-main img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border-radius: 9px; }
.riffello-artist-release-main strong span { color: #aeb4c0; font-weight: 500; }
.riffello-artist-release small { display: block; margin-top: 3px; color: #b8bdca; }
.riffello-release-status { flex: 0 0 auto; color: #c7f36b; font-size: .84rem; font-weight: 700; }
.riffello-portal-message { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); color: #f7f7fb; }
@media (max-width: 680px) {
  .riffello-artist-portal fieldset { grid-template-columns: 1fr; padding: 15px; }
  .riffello-portal-image-fields,
  .riffello-portal-social-grid { grid-template-columns: 1fr; }
  .riffello-artist-release { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* Separate listener and artist account paths */
.riffello-account-wrap,
.riffello-listener-home { width: min(100%, 1040px); margin: 32px auto; }
.riffello-account-card,
.riffello-listening-section { margin: 24px 0; padding: clamp(20px, 4vw, 34px); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(15,18,28,.9); color: #f7f7fb; }
.riffello-account-card h1,
.riffello-account-card h2,
.riffello-listening-section h2 { margin: 0 0 12px; color: inherit; }
.riffello-account-card > p { max-width: 72ch; line-height: 1.6; }
.riffello-account-eyebrow { margin: 0 0 8px; color: #c7f36b; font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.riffello-account-form { display: grid; gap: 16px; margin-top: 24px; }
.riffello-account-form > label:not(.riffello-account-terms) { display: grid; gap: 7px; font-weight: 650; }
.riffello-account-form input[type="email"],
.riffello-account-form input[type="text"],
.riffello-account-form input[type="password"],
.riffello-account-form textarea { width: 100%; min-height: 46px; box-sizing: border-box; padding: 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 10px; background: #10131d; color: #fff; font: inherit; }
.riffello-account-form textarea { min-height: 100px; resize: vertical; }
.riffello-account-form small,
.riffello-account-footnote { color: #b8bdca; font-size: .9rem; line-height: 1.55; }
.riffello-account-terms { display: flex; align-items: flex-start; gap: 10px; line-height: 1.55; }
.riffello-account-terms input { flex: 0 0 auto; margin-top: 5px; }
.riffello-account-terms a,
.riffello-account-switch a { color: #c7f36b; text-underline-offset: 3px; }
.riffello-account-form button { justify-self: start; }
.riffello-account-message { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #c7f36b; border-radius: 8px; background: rgba(255,255,255,.06); line-height: 1.6; }
.riffello-account-message p:last-child { margin-bottom: 0; }
.riffello-account-footnote { margin: 18px 0 0; }
.riffello-account-switch { margin-top: 24px; }
.riffello-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.riffello-listening-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.riffello-listening-heading h2 { margin-bottom: 0; }
@media (max-width: 640px) {
  .riffello-account-wrap,
  .riffello-listener-home { margin: 18px auto; }
  .riffello-account-card,
  .riffello-listening-section { padding: 18px; }
  .riffello-listening-heading { align-items: flex-start; flex-direction: column; }
  .riffello-account-form button { width: 100%; justify-self: stretch; }
}


/* Listener profile pictures */
.riffello-account-form input[type="file"] {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 10px;
  background: #10131d;
  color: #fff;
  font: inherit;
}
.riffello-listener-photo {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.riffello-listener-photo .riffello-image-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.riffello-listener-photo .riffello-account-footnote { margin: 0; }
