
#cc-perfil-dialog {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #415069;
  background: #18253a;
  color: #f4f6fb;
  box-shadow: 0 18px 65px #0009;
  font: 14px/1.45 system-ui, sans-serif;
}

#cc-perfil-dialog::backdrop {
  background: rgba(5,10,20,.72);
}

.cc-perfil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #ffffff1c;
}

.cc-perfil-head strong {
  display: block;
  font-size: 18px;
}

.cc-perfil-head small,
.cc-perfil-avatarrow small {
  display: block;
  color: #aabbd1;
  font-size: 12px;
}

.cc-perfil-head button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.cc-perfil-content {
  padding: 15px 18px 18px;
}

.cc-perfil-notice {
  margin: 0 0 15px;
  padding: 10px 12px;
  background: #263851;
  border-radius: 9px;
  color: #cbd8ea;
  font-size: 12px;
}

.cc-perfil-avatarrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.cc-perfil-avatar {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #344660;
  font-size: 30px;
}

.cc-perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-perfil-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
  font-size: 12px;
}

.cc-perfil-content input:not([type=file]),
.cc-perfil-content textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #455875;
  border-radius: 8px;
  padding: 9px 11px;
  background: #101c2e;
  color: #fff;
  font: inherit;
}

.cc-perfil-content input[type=file] {
  width: 100%;
  max-width: 265px;
  font-size: 11px;
}

.cc-perfil-content textarea {
  resize: vertical;
}

.cc-perfil-previewbtn,
.cc-perfil-actions button {
  border: 1px solid #4b607e;
  border-radius: 8px;
  padding: 9px 12px;
  background: #263b59;
  color: white;
  cursor: pointer;
  font: inherit;
}

.cc-perfil-previewbtn {
  margin-top: 14px;
  width: 100%;
}

.cc-perfil-preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #101c2e;
  overflow-wrap: anywhere;
}

.cc-perfil-preview p {
  margin: 0 0 7px;
}

.cc-perfil-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.cc-perfil-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media(max-width:480px) {
  .cc-perfil-head { padding: 12px 14px; }
  .cc-perfil-content { padding: 12px 14px 15px; }
}
